From 3b75798cc41993f9016610296907d2338545a345 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期五, 16 八月 2024 15:43:01 +0800
Subject: [PATCH] Default Changelist

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

diff --git a/src/router/index.ts b/src/router/index.ts
index 5fe7e90..c562cd5 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,7 +78,10 @@
             Session.clear();
             NProgress.done();
         } else if (token && to.path === '/login') {
-            next('/homeMenu');
+            next('/newMenu');
+            NProgress.done();
+        } else if (token && to.path === '/newMenu') {
+            next();
             NProgress.done();
         } else {
             const storesRoutesList = useRoutesList(pinia);

--
Gitblit v1.9.2