mirror of
https://github.com/langgenius/dify.git
synced 2026-04-04 14:10:41 +08:00
fix: do not show error tooltip if http status code is 401
This commit is contained in:
parent
a76d0a09b6
commit
42cdc55db1
@ -45,6 +45,8 @@ const afterResponseErrorCode = (otherOptions: IOtherOptions): AfterResponseHook
|
||||
globalThis.location.href = `${globalThis.location.origin}/signin`
|
||||
})
|
||||
break
|
||||
case 401:
|
||||
return Promise.reject(response)
|
||||
// fall through
|
||||
default:
|
||||
bodyJson.then((data: ResponseError) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user