Commit 90f2f52f by tanghuting

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

将 NoFind 改为 NoFound 并添加 Home 到白名单中,以保持路由名称一致性
parent f8d99c59
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment