vben
2020-11-13 1d45617e4a311e339eb008a629cd342cd673ecf1
提交 | 用户 | age
2f6253 1 import type { AppRouteRecordRaw } from '/@/router/types';
2
3 const EXCEPTION_COMPONENT = () => import('../views/sys/exception/Exception');
4
5 /**
6  * @description: default layout
7  */
8 export const DEFAULT_LAYOUT_COMPONENT = () => import('/@/layouts/default/index');
9
10 /**
11  * @description: page-layout
12  */
13 export const PAGE_LAYOUT_COMPONENT = () => import('/@/layouts/page/index');
14
15 // 404 on a page
16 export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
17   path: '/:path(.*)*',
18   name: 'ErrorPage',
19   component: EXCEPTION_COMPONENT,
20   meta: {
21     title: 'ErrorPage',
22     hideBreadcrumb: true,
23   },
24 };
e23336 25
2f6253 26 export const REDIRECT_ROUTE: AppRouteRecordRaw = {
27   path: '/redirect/:path(.*)*',
28   name: 'Redirect',
29   component: () => import('/@/views/sys/redirect/index.vue'),
30   meta: {
31     title: 'Redirect',
32     hideBreadcrumb: true,
33   },
34 };