From 90f2f52f2495f37454b6d71c44660638e92ca950 Mon Sep 17 00:00:00 2001 From: tanghuting <1286545749@qq.com> Date: Wed, 18 Jun 2025 15:25:34 +0800 Subject: [PATCH] =?UTF-8?q?fix(router):=20=E6=9B=B4=E6=96=B0=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E8=B7=AF=E7=94=B1=E7=9A=84=E7=99=BD=E5=90=8D=E5=8D=95?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 NoFind 改为 NoFound 并添加 Home 到白名单中,以保持路由名称一致性 --- src/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/index.ts b/src/router/index.ts index b818421c..e80dae08 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -12,7 +12,7 @@ const router = createRouter({ }) export const resetRouter = (): void => { - const resetWhiteNameList = ['Redirect', 'Login', 'NoFind', 'Root'] + const resetWhiteNameList = ['Redirect', 'Login', 'NoFound', 'Home'] router.getRoutes().forEach((route) => { const { name } = route if (name && !resetWhiteNameList.includes(name as string)) {