From 8e4ab7acddbdb84fd755acf7e75cf471f50cba60 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期四, 31 十月 2024 10:16:47 +0800 Subject: [PATCH] 优化部分页面及配置 --- src/router/index.ts | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 8c047ca..ab2d0a5 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -5,14 +5,14 @@ // 创建路由实例 const router = createRouter({ - history: createWebHistory("/"), // createWebHashHistory URL带#,createWebHistory URL不带# + history: createWebHistory("/energy"), // createWebHashHistory URL带#,createWebHistory URL不带# strict: true, routes: remainingRouter as RouteRecordRaw[], scrollBehavior: () => ({ left: 0, top: 0 }) }) export const resetRouter = (): void => { - const resetWhiteNameList = ['Redirect', 'Login', 'NoFind', 'Root'] + const resetWhiteNameList = ['Redirect', 'Login', 'NoFind', 'Root', 'Callback'] router.getRoutes().forEach((route) => { const { name } = route if (name && !resetWhiteNameList.includes(name as string)) { -- Gitblit v1.9.3