调整 token错误更新

This commit is contained in:
浅念
2026-05-08 13:28:09 +08:00
parent bdd6bd1066
commit 845dff1ef7
5 changed files with 30 additions and 20 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ async function handle401Error(originalOptions) {
// 清空队列
retryQueue.length = 0;
} else {
// 登录失败,拒绝所有队列中的请求
// 登录失败,拒绝所有队列中的请求并跳转登录页
retryQueue.forEach(({ reject }) => {
reject({ data: { message: '登录失败,请重新登录' } });
});