fix: 移除路由表中不必要的 name 属性
This commit is contained in:
parent
e4b5c2781e
commit
3b40d4f161
@ -20,7 +20,6 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|||||||
{
|
{
|
||||||
path: "/403",
|
path: "/403",
|
||||||
component: () => import("@/views/error-page/403.vue"),
|
component: () => import("@/views/error-page/403.vue"),
|
||||||
name: "403",
|
|
||||||
meta: {
|
meta: {
|
||||||
hidden: true
|
hidden: true
|
||||||
}
|
}
|
||||||
@ -28,7 +27,6 @@ export const constantRoutes: RouteRecordRaw[] = [
|
|||||||
{
|
{
|
||||||
path: "/404",
|
path: "/404",
|
||||||
component: () => import("@/views/error-page/404.vue"),
|
component: () => import("@/views/error-page/404.vue"),
|
||||||
name: "404",
|
|
||||||
meta: {
|
meta: {
|
||||||
hidden: true
|
hidden: true
|
||||||
},
|
},
|
||||||
@ -189,7 +187,7 @@ export const asyncRoutes: RouteRecordRaw[] = [
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/:pathMatch(.*)*", // 必须将 'ErrorPage' 路由放在最后, Must put the 'ErrorPage' route at the end
|
path: "/:pathMatch(.*)*", // Must put the 'ErrorPage' route at the end, 必须将 'ErrorPage' 路由放在最后
|
||||||
redirect: "/404",
|
redirect: "/404",
|
||||||
name: "ErrorPage",
|
name: "ErrorPage",
|
||||||
meta: {
|
meta: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user