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')
   // 如果是登录页面,不执行
   if (!token && history.location.pathname !== loginPath) {
-    return history.push(loginPath)
+    // return history.push(loginPath)
   }
   const authHeader = { Authorization: `Bearer ${JSON.parse(token)}` }
   return {