Browse Source

登录失效后回到登录界面,并刷新界面

Michael Wang 6 years ago
parent
commit
34c561b0f0
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/main.js

+ 4 - 3
src/main.js

@@ -104,9 +104,10 @@ qmInstance.interceptors.response.use(
         window.logAlertDate = Date.now();
         alert("登录失效 跳转登录页面");
       }
-      router.push({
-        name: "login"
-      });
+      // router.push({
+      //   name: "login"
+      // });
+      location.replace("/login");
     }
 
     // 登录失效 跳转登录页面 //facepp可能返回403