Explorar o código

Merge branch 'dev'

WanGxC hai 8 meses
pai
achega
88106d2176
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/router/index.ts

+ 2 - 0
src/router/index.ts

@@ -109,6 +109,8 @@ router.beforeEach(async (to, from, next) => {
         } else if (token && to.path === '/login') {
             next('/home');
             NProgress.done();
+        } else if (token && to.path === '/') {
+            next('/home');
         } else {
 
             const storesRoutesList = useRoutesList(pinia);