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