From 1b9fea7d4af68d8f933b2dc42bf6084b9646f64c Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期二, 04 三月 2025 08:39:55 +0800
Subject: [PATCH] 修改作业等级名称

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

diff --git a/src/router/index.ts b/src/router/index.ts
index 322d85c..5971416 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -78,13 +78,18 @@
             Session.clear();
             NProgress.done();
         } else if (token && to.path === '/login') {
-            next('/home');
+            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) {
-
                 // 后端控制路由:路由数据初始化,防止刷新时丢失
                 await initBackEndControlRoutes();
                 // 动态添加路由:防止非首页刷新时跳转回首页的问题

--
Gitblit v1.9.2