소스 검색

fix: 🐞 update axios interceptors response

AhJindeg 1 년 전
부모
커밋
ef9ed50533
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 })
       }