lanjianrong 3 년 전
부모
커밋
4d86b8e3d8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/app.tsx

+ 1 - 1
src/app.tsx

@@ -50,7 +50,7 @@ const authHeaderInterceptor = (url: string, options: RequestOptionsInit) => {
   const token = window.localStorage.getItem('TOKEN_ID')
   const token = window.localStorage.getItem('TOKEN_ID')
   // 如果是登录页面,不执行
   // 如果是登录页面,不执行
   if (!token && history.location.pathname !== loginPath) {
   if (!token && history.location.pathname !== loginPath) {
-    return history.push(loginPath)
+    // return history.push(loginPath)
   }
   }
   const authHeader = { Authorization: `Bearer ${JSON.parse(token)}` }
   const authHeader = { Authorization: `Bearer ${JSON.parse(token)}` }
   return {
   return {