添加 console.error 输出刷新 token 失败的错误信息,便于调试和问题追踪
@@ -62,6 +62,7 @@ export function http<T>(options: CustomRequestOptions) {
taskQueue.forEach(task => task())
}
catch (refreshErr) {
+ console.error('刷新 token 失败:', refreshErr)
refreshing = false
// 刷新 token 失败,跳转到登录页
nextTick(() => {