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

+ 5 - 1
src/layout/main-layout.vue

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