Karsa 1 жил өмнө
parent
commit
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;
   let auth = localStorage.getItem("auth") || false;
   if (to.path != "/login" && to.path!='/temppage' && !auth) {
   if (to.path != "/login" && to.path!='/temppage' && !auth) {
-    window.location.href = process.env.Login;
+    window.location.href =  window.location.origin + '/login';
     return false;
     return false;
   }
   }