diff --git a/src/router/routes/index.ts b/src/router/routes/index.ts index 2c86722eb..10f115c72 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 391975e8b..9ffd43337 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 000000000..f5dfa6cd8 --- /dev/null +++ b/src/views/system-view/constant-page/index.vue @@ -0,0 +1,16 @@ + + + Custom Constant Page + + 回到首页 + + + + + + +