From 999cab6fb3fc6d2a288d365da991351c5a396bf0 Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期三, 21 九月 2022 15:53:18 +0800 Subject: [PATCH] 删除无用页面 --- src/router/index.ts | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 11ec534..a99ccfb 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -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