From 328febf368f1494b4b5b647f3eab5f4ad38eb072 Mon Sep 17 00:00:00 2001
From: zhouwenxuan <1175765986@qq.com>
Date: Thu, 12 Oct 2023 16:54:27 +0800
Subject: [PATCH] 日报接口、图表优化
---
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 a99e192..efe48a5 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -78,13 +78,14 @@
next(`/login?redirect=${to.path}¶ms=${JSON.stringify(to.query ? to.query : to.params)}`);
Session.clear();
NProgress.done();
+ // next()
} else if (token && to.path === '/login') {
- next('/home');
+ next('/bigScreen');
NProgress.done();
} else {
const storesRoutesList = useRoutesList(pinia);
const { routesList } = storeToRefs(storesRoutesList);
- if (routesList.value.length === 0) {
+ if ( routesList.value && routesList.value.length === 0) {
// 后端控制路由:路由数据初始化,防止刷新时丢失
await initBackEndControlRoutes();
// 动态添加路由:防止非首页刷新时跳转回首页的问题
--
Gitblit v1.9.2