mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 00:12:43 +08:00
fix(router): 更新重置路由的白名单名称
将 NoFind 改为 NoFound 并添加 Home 到白名单中,以保持路由名称一致性
This commit is contained in:
parent
f8d99c593d
commit
90f2f52f24
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user