Explorar el Código

更新 路由

wzh hace 3 años
padre
commit
665836c03d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();