From 78efd7793a241811065caf56edf7e68aea58bc8c Mon Sep 17 00:00:00 2001 From: Soybean Date: Wed, 21 Sep 2022 18:45:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(projects):=20add=20constant=20route=20page?= =?UTF-8?q?=20without=20login=20status[=E6=B7=BB=E5=8A=A0=E6=9C=AA?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=8F=AF=E8=AE=BF=E9=97=AE=E7=9A=84=E5=9B=BA?= =?UTF-8?q?=E5=AE=9A=E8=B7=AF=E7=94=B1=E7=A4=BA=E4=BE=8B=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/routes/index.ts | 9 +++++++++ src/typings/route.d.ts | 1 + src/views/system-view/constant-page/index.vue | 16 ++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 src/views/system-view/constant-page/index.vue diff --git a/src/router/routes/index.ts b/src/router/routes/index.ts index 2c86722e..10f115c7 100644 --- a/src/router/routes/index.ts +++ b/src/router/routes/index.ts @@ -29,6 +29,15 @@ export const constantRoutes: AuthRoute.Route[] = [ singleLayout: 'blank' } }, + { + name: 'constant-page', + path: '/constant-page', + component: 'self', + meta: { + title: '固定页面', + singleLayout: 'blank' + } + }, { name: 'no-permission', path: '/no-permission', diff --git a/src/typings/route.d.ts b/src/typings/route.d.ts index 391975e8..9ffd4333 100644 --- a/src/typings/route.d.ts +++ b/src/typings/route.d.ts @@ -11,6 +11,7 @@ declare namespace AuthRoute { | 'not-found' | 'no-permission' | 'service-error' + | 'constant-page' | 'not-found-page' // 捕获无效path的路由 // 自定义路由 | 'dashboard' diff --git a/src/views/system-view/constant-page/index.vue b/src/views/system-view/constant-page/index.vue new file mode 100644 index 00000000..f5dfa6cd --- /dev/null +++ b/src/views/system-view/constant-page/index.vue @@ -0,0 +1,16 @@ + + + + +