dbsd_kczx/src/router/constant.ts

25 lines
553 B
TypeScript
Raw Normal View History

2021-10-20 14:32:09 +08:00
export const REDIRECT_NAME = 'Redirect';
export const PARENT_LAYOUT_NAME = 'ParentLayout';
export const PAGE_NOT_FOUND_NAME = 'PageNotFound';
2022-03-10 09:47:29 +08:00
export const EXCEPTION_COMPONENT = () => import('/@/views/sys/exception/Exception.vue');
2021-10-20 14:32:09 +08:00
/**
* @description: default layout
*/
export const LAYOUT = () => import('/@/layouts/default/index.vue');
/**
* @description: parent-layout
*/
export const getParentLayout = (_name?: string) => {
return () =>
new Promise((resolve) => {
resolve({
name: PARENT_LAYOUT_NAME,
});
});
};