wzh пре 3 година
родитељ
комит
665836c03d
1 измењених фајлова са 1 додато и 1 уклоњено
  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();