Skip to content

Commit ef9ed50

Browse files
committed
fix: 🐞 update axios interceptors response
1 parent 7fe8b8b commit ef9ed50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/config/axios/service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ service.interceptors.response.use(
174174
if (msg === '无效的刷新令牌') {
175175
// hard coding:忽略这个提示,直接登出
176176
console.log(msg)
177+
return handleAuthorized()
177178
} else {
178179
ElNotification.error({ title: msg })
179180
}

0 commit comments

Comments
 (0)