3 コミット 77066de178 ... 88106d2176

作者 SHA1 メッセージ 日付
  WanGxC 88106d2176 Merge branch 'dev' 5 ヶ月 前
  WanGxC 03b634a1ee Merge branch 'cheney' into dev 5 ヶ月 前
  WanGxC bf8416d1dd fix(router): 修复首页重复访问问题 5 ヶ月 前
1 ファイル変更2 行追加0 行削除
  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') {
         } else if (token && to.path === '/login') {
             next('/home');
             next('/home');
             NProgress.done();
             NProgress.done();
+        } else if (token && to.path === '/') {
+            next('/home');
         } else {
         } else {
 
 
             const storesRoutesList = useRoutesList(pinia);
             const storesRoutesList = useRoutesList(pinia);