调整 token错误更新
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ async function handle401Error(originalOptions) {
|
||||
// 清空队列
|
||||
retryQueue.length = 0;
|
||||
} else {
|
||||
// 登录失败,拒绝所有队列中的请求
|
||||
// 登录失败,拒绝所有队列中的请求并跳转登录页
|
||||
retryQueue.forEach(({ reject }) => {
|
||||
reject({ data: { message: '登录失败,请重新登录' } });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user