肖栋 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("/");
       }
     }