Răsfoiți Sursa

Merge branch 'cheney' into dev

WanGxC 5 luni în urmă
părinte
comite
03b634a1ee
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  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);