diff --git a/src/router/index.ts b/src/router/index.ts index aa66c3f..fbfc2f1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -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 - } } ]