liuyu 4 years ago
parent
commit
4d6e409702
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/layout/main-layout.vue

+ 2 - 4
src/layout/main-layout.vue

@@ -45,12 +45,10 @@ export default {
     toLogin() {
     toLogin() {
       let route = window.location.pathname;
       let route = window.location.pathname;
       console.log(route);
       console.log(route);
-      if (route == '/login') {
+      if (route == '/liveadmin/login') {
         return route.includes('login');
         return route.includes('login');
-      } else if (route == '/livecheck') {
+      } else if (route == '/liveadmin/livecheck') {
         return route.includes('livecheck');
         return route.includes('livecheck');
-      } else {
-        return route.includes('liveIndex');
       }
       }
     },
     },
   },
   },