From 7e06011c05f877c1f275c31f7f071dbf0b0b669d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 26 Nov 2024 12:39:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=20typed-router.d.ts=20?= =?UTF-8?q?=E4=B8=AD=E6=B7=BB=E5=8A=A0=20'$Path'=20=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/primevue.vue | 11 +++++++++-- src/{ => pages}/[...path].vue | 0 typed-router.d.ts | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) rename src/{ => pages}/[...path].vue (100%) diff --git a/src/components/primevue.vue b/src/components/primevue.vue index 24f7a5b..2fc206e 100644 --- a/src/components/primevue.vue +++ b/src/components/primevue.vue @@ -1,7 +1,14 @@ - + diff --git a/src/[...path].vue b/src/pages/[...path].vue similarity index 100% rename from src/[...path].vue rename to src/pages/[...path].vue diff --git a/typed-router.d.ts b/typed-router.d.ts index da6dcb6..015cba8 100644 --- a/typed-router.d.ts +++ b/typed-router.d.ts @@ -18,6 +18,7 @@ declare module 'vue-router/auto-routes' { * Route name map generated by unplugin-vue-router */ export interface RouteNamedMap { + '$Path': RouteRecordInfo<'$Path', '/:path(.*)', { path: ParamValue }, { path: ParamValue }>, '中文页面': RouteRecordInfo<'中文页面', '/中文-页面', Record, Record>, 'A': RouteRecordInfo<'A', '/a', Record, Record>, 'AA': RouteRecordInfo<'AA', '/a/a', Record, Record>,