From 7518a0bd6742227b83b13c615c0aa8ca4e85ee71 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 9 Feb 2026 16:57:19 +0800 Subject: [PATCH] perf: Optimize API documentation authentication prompts --- frontend/public/swagger-ui-bundle.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/public/swagger-ui-bundle.js b/frontend/public/swagger-ui-bundle.js index 87239a84..cdbe29ac 100644 --- a/frontend/public/swagger-ui-bundle.js +++ b/frontend/public/swagger-ui-bundle.js @@ -41747,7 +41747,8 @@ } if (!a.ok) { const s = new Error(a.statusText || `response status is ${a.status}`) - if (a.status === 401 && a.statusText === 'Unauthorized') { + // if (a.status === 401 && a.statusText === 'Unauthorized') { + if (a.status === 401) { location.href = location.pathname.replace('/docs', '/') + '#/401?title=unauthorized&target=docs' return a }