Переглянути джерело

!465 fix: update axios interceptors response
Merge pull request !465 from AhJindeg/hotfix/response

芋道源码 11 місяців тому
батько
коміт
8a73fbe775
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      src/config/axios/service.ts

+ 1 - 0
src/config/axios/service.ts

@@ -174,6 +174,7 @@ service.interceptors.response.use(
       if (msg === '无效的刷新令牌') {
         // hard coding:忽略这个提示,直接登出
         console.log(msg)
+        return handleAuthorized()
       } else {
         ElNotification.error({ title: msg })
       }