Parcourir la source

更新 路由

wzh il y a 3 ans
Parent
commit
665836c03d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

@@ -49,7 +49,7 @@ router.beforeEach(async (to, from, next) => {
         }
       }
     } else {
-      if (to.path == "/") {
+      if (to.path == "/" || to.path == "/login") {
         next("/index");
       } else {
         next();