Explorar o código

更新 路由

wzh %!s(int64=3) %!d(string=hai) anos
pai
achega
1278b6e4ae
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      src/main.js

+ 1 - 5
src/main.js

@@ -45,11 +45,7 @@ router.beforeEach(async (to, from, next) => {
         next();
       }
     } else {
-      if (to.path == "/index") {
-        next();
-      } else {
-        next("/index");
-      }
+      next();
     }
   } else {
     store.commit("changeLogin", false);