From a8ef7c1a4b2ab6acd91a0520e6258bd753d17f20 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期三, 16 八月 2023 15:58:20 +0800
Subject: [PATCH] 人员证书类型

---
 src/router/index.ts |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index 5fe7e90..322d85c 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -11,6 +11,7 @@
 import { initFrontEndControlRoutes } from '/@/router/frontEnd';
 import { initBackEndControlRoutes } from '/@/router/backEnd';
 import { useUserInfo } from '/@/stores/userInfo';
+import { nextTick } from 'vue';
 
 // 读取 `/src/stores/themeConfig.ts` 是否开启后端控制路由配置
 const storesThemeConfig = useThemeConfig(pinia);
@@ -77,12 +78,13 @@
             Session.clear();
             NProgress.done();
         } else if (token && to.path === '/login') {
-            next('/homeMenu');
+            next('/home');
             NProgress.done();
         } else {
             const storesRoutesList = useRoutesList(pinia);
             const { routesList } = storeToRefs(storesRoutesList);
             if (routesList.value.length === 0) {
+
                 // 后端控制路由:路由数据初始化,防止刷新时丢失
                 await initBackEndControlRoutes();
                 // 动态添加路由:防止非首页刷新时跳转回首页的问题

--
Gitblit v1.9.2