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

pull/12372/head
NFish 1 year ago
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…
Cancel
Save