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 {