fix: do not show error tooltip if http status code is 401

This commit is contained in:
NFish 2024-11-28 16:04:19 +08:00
parent a76d0a09b6
commit 42cdc55db1
1 changed files with 2 additions and 0 deletions

View File

@ -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) => {