From 31dcd2ac79af82cc149f34fbfb6ffd3d4a91a3cd Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Tue, 25 Feb 2025 13:46:58 +0800
Subject: [PATCH] 修改名称
---
src/router/index.ts | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/router/index.ts b/src/router/index.ts
index 5fe7e90..5971416 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,9 +78,15 @@
Session.clear();
NProgress.done();
} else if (token && to.path === '/login') {
- next('/homeMenu');
+ next('/newMenu');
NProgress.done();
- } else {
+ } else if (token && to.path === '/newMenu') {
+ next();
+ NProgress.done();
+ } else if (token && (to.path === '/warningScreen' || to.path === '/screenPage')) {
+ next();
+ NProgress.done();
+ }else {
const storesRoutesList = useRoutesList(pinia);
const { routesList } = storeToRefs(storesRoutesList);
if (routesList.value.length === 0) {
--
Gitblit v1.9.2