mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-10 18:53:36 +08:00
fix:闪跳
This commit is contained in:
@@ -105,11 +105,11 @@ export class HttpClient<SecurityDataType = unknown> {
|
||||
(err) => {
|
||||
if (err?.response?.status === 401) {
|
||||
if (whitePathnameList.includes(location.pathname)) {
|
||||
return;
|
||||
return Promise.reject("尚未登录");
|
||||
}
|
||||
Message.error("尚未登录");
|
||||
redirectToLogin();
|
||||
return;
|
||||
return Promise.reject("尚未登录");
|
||||
}
|
||||
// 手动取消请求
|
||||
if (err.code === "ERR_CANCELED") {
|
||||
|
||||
Reference in New Issue
Block a user