From f59373dccb4afb37e63f4fe655061d067244860c Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期三, 16 十一月 2022 09:17:11 +0800
Subject: [PATCH] Default Changelist

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

diff --git a/src/router/index.ts b/src/router/index.ts
index 59c04d3..a99ccfb 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -66,7 +66,7 @@
 
 // 路由加载前
 router.beforeEach(async (to, from, next) => {
-    if (to.path === '/intelligentMap') {
+    if (to.path === '/intelligentLine') {
         next();
     } else {
         NProgress.configure({ showSpinner: false });
@@ -81,12 +81,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