mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-01-27 21:44:47 +08:00
47 lines
1.1 KiB
TypeScript
47 lines
1.1 KiB
TypeScript
import type { AppRouteRecordRaw } from '/@/router/types';
|
|
|
|
const EXCEPTION_COMPONENT = () => import('../views/sys/exception/Exception');
|
|
|
|
/**
|
|
* @description: default layout
|
|
*/
|
|
export const DEFAULT_LAYOUT_COMPONENT = () => import('/@/layouts/default/index');
|
|
|
|
/**
|
|
* @description: page-layout
|
|
*/
|
|
export const PAGE_LAYOUT_COMPONENT = () => import('/@/layouts/page/index');
|
|
|
|
// 404 on a page
|
|
export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
|
|
path: '/:path(.*)*',
|
|
name: 'ErrorPage',
|
|
component: EXCEPTION_COMPONENT,
|
|
meta: {
|
|
title: 'ErrorPage',
|
|
hideBreadcrumb: true,
|
|
},
|
|
};
|
|
export const REDIRECT_ROUTE: AppRouteRecordRaw = {
|
|
path: '/redirect/:path(.*)*',
|
|
name: 'Redirect',
|
|
component: () => import('/@/views/sys/redirect/index.vue'),
|
|
meta: {
|
|
title: 'Redirect',
|
|
hideBreadcrumb: true,
|
|
},
|
|
};
|
|
|
|
// Whole site 404
|
|
// export const FULL_PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
|
|
// path: '/:path(.*)*',
|
|
// name: 'FullErrorPage',
|
|
// component: EXCEPTION_COMPONENT,
|
|
// props: {
|
|
// full: true,
|
|
// },
|
|
// meta: {
|
|
// title: 'FullErrorPage',
|
|
// },
|
|
// };
|