mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
perf: Optimize API documentation authentication prompts
This commit is contained in:
committed by
fit2cloud-chenyw
parent
6176eee385
commit
95a7daebef
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user