chore: 捕获并记录刷新 token 失败的错误

添加 console.error 输出刷新 token 失败的错误信息,便于调试和问题追踪
This commit is contained in:
feige996
2025-08-21 16:13:58 +08:00
parent 7036d0d0d6
commit 2fb1e63059

View File

@@ -62,6 +62,7 @@ export function http<T>(options: CustomRequestOptions) {
taskQueue.forEach(task => task())
}
catch (refreshErr) {
console.error('刷新 token 失败:', refreshErr)
refreshing = false
// 刷新 token 失败,跳转到登录页
nextTick(() => {