chore: 捕获并记录刷新 token 失败的错误
添加 console.error 输出刷新 token 失败的错误信息,便于调试和问题追踪
This commit is contained in:
@@ -62,6 +62,7 @@ export function http<T>(options: CustomRequestOptions) {
|
||||
taskQueue.forEach(task => task())
|
||||
}
|
||||
catch (refreshErr) {
|
||||
console.error('刷新 token 失败:', refreshErr)
|
||||
refreshing = false
|
||||
// 刷新 token 失败,跳转到登录页
|
||||
nextTick(() => {
|
||||
|
||||
Reference in New Issue
Block a user