diff --git a/src/modules/router.ts b/src/modules/router.ts index 3a7f6312..185a0e3f 100644 --- a/src/modules/router.ts +++ b/src/modules/router.ts @@ -29,19 +29,33 @@ const route: RouteRecordRaw[] = [ if (itemExists) { next(); } else { - next({ name: "Error404NotFound" }); + next({ + name: "Error404NotFound", + params: { pathMatch: to.path.substring(1).split("/") }, + }); } }, }, { - path: "/:name", - name: "Pages", + path: "/build-and-deploy", + name: "BuildAndDeploy", component: () => import("@/modules/02_pages/MainPage.vue"), }, + { + path: "/debug", + name: "Debug", + component: () => import("@/modules/02_pages/MainPage.vue"), + }, + // { + // path: "/:name", + // name: "Pages", + // component: () => import("@/modules/02_pages/MainPage.vue"), + // }, { path: "/:pathMatch(.*)*", name: "Error404NotFound", component: Error404NotFound, + props: true, }, ];