Karsa 1 年之前
父節點
當前提交
cd4bb5cd49
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

@@ -138,7 +138,7 @@ router.beforeEach((to, from, next) => {
 
   let auth = localStorage.getItem("auth") || false;
   if (to.path != "/login" && to.path!='/temppage' && !auth) {
-    window.location.href = process.env.Login;
+    window.location.href =  window.location.origin + '/login';
     return false;
   }