web-权限、文章
This commit is contained in:
@@ -123,11 +123,12 @@ export const routes: Array<RouteRecordRaw> = [
|
||||
}
|
||||
],
|
||||
},
|
||||
// 捕获所有未匹配的路由
|
||||
{
|
||||
path: "/:pathMatch(.*)*",
|
||||
redirect: "/404",
|
||||
},
|
||||
// 捕获所有未匹配的路由(这个应该在所有动态路由添加后再匹配)
|
||||
// 注意:404路由会在动态路由生成后重新添加
|
||||
// {
|
||||
// path: "/:pathMatch(.*)*",
|
||||
// redirect: "/404",
|
||||
// },
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
|
||||
Reference in New Issue
Block a user