fix(router): 更新重置路由的白名单名称

将 NoFind 改为 NoFound 并添加 Home 到白名单中,以保持路由名称一致性
This commit is contained in:
tanghuting 2025-06-18 15:25:34 +08:00
parent f8d99c593d
commit 90f2f52f24

View File

@ -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)) {