lanjianrong 3 years ago
parent
commit
4d86b8e3d8
1 changed files with 1 additions and 1 deletions
  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')
   // 如果是登录页面,不执行
   if (!token && history.location.pathname !== loginPath) {
-    return history.push(loginPath)
+    // return history.push(loginPath)
   }
   const authHeader = { Authorization: `Bearer ${JSON.parse(token)}` }
   return {