2 Commits 8adef8fb6d ... 03b634a1ee

Tác giả SHA1 Thông báo Ngày
  WanGxC 03b634a1ee Merge branch 'cheney' into dev 5 tháng trước cách đây
  WanGxC bf8416d1dd fix(router): 修复首页重复访问问题 5 tháng trước cách đây
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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);