浏览代码

登录调整

肖栋 2 周之前
父节点
当前提交
49c8fa1fa3
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/utils/request.js

+ 2 - 2
src/utils/request.js

@@ -154,7 +154,7 @@ service.interceptors.response.use(
         if (isLoggedIn) {
           global.logout();
 
-          window.location.href = "/#/login?redirect=" + encodeURIComponent("/");
+          window.location.href = "login?redirect=" + encodeURIComponent("/");
         }
       }
 
@@ -181,7 +181,7 @@ service.interceptors.response.use(
         global.logout();
 
         // 跳转到登录页
-        window.location.href = "/#/login?redirect=" + encodeURIComponent("/");
+        window.location.href = "login?redirect=" + encodeURIComponent("/");
       }
     }