Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 19:09:21 +08:00

refactor: 留用 404 alias 同时移除 ErrorPage 路由 && 简化 redirect 路由 path

This commit is contained in:
pany 2024-03-03 23:00:17 +08:00
parent d716248736
commit c5471b5fca

View File

@ -17,7 +17,7 @@ export const constantRoutes: RouteRecordRaw[] = [
},
children: [
{
path: "/redirect/:path(.*)",
path: ":path(.*)",
component: () => import("@/views/redirect/index.vue")
}
]
@ -286,14 +286,6 @@ export const dynamicRoutes: RouteRecordRaw[] = [
}
}
]
},
{
path: "/:pathMatch(.*)*", // Must put the 'ErrorPage' route at the end, 必须将 'ErrorPage' 路由放在最后
redirect: "/404",
name: "ErrorPage",
meta: {
hidden: true
}
}
]