Commit 8a73fbe7 by 芋道源码 Committed by Gitee

!465 fix: update axios interceptors response

Merge pull request !465 from AhJindeg/hotfix/response
parents 38fe69fb ef9ed505
...@@ -174,6 +174,7 @@ service.interceptors.response.use( ...@@ -174,6 +174,7 @@ service.interceptors.response.use(
if (msg === '无效的刷新令牌') { if (msg === '无效的刷新令牌') {
// hard coding:忽略这个提示,直接登出 // hard coding:忽略这个提示,直接登出
console.log(msg) console.log(msg)
return handleAuthorized()
} else { } else {
ElNotification.error({ title: msg }) ElNotification.error({ title: msg })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment