fix:闪跳

This commit is contained in:
Gavan
2025-07-22 18:06:09 +08:00
parent 7c33568da2
commit b31e7a0061
4 changed files with 482 additions and 4 deletions

View File

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