vue-vben-admin/src/router/constant.ts

23 lines
501 B
TypeScript
Raw Normal View History

2021-02-22 23:04:47 +08:00
export const REDIRECT_NAME = 'Redirect';
export const PARENT_LAYOUT_NAME = 'ParentLayout';
2021-02-22 23:04:47 +08:00
export const EXCEPTION_COMPONENT = () => import('../views/sys/exception/Exception.vue');
2020-09-28 20:19:10 +08:00
/**
* @description: default layout
*/
2020-12-13 22:05:34 +08:00
export const LAYOUT = () => import('/@/layouts/default/index.vue');
2020-09-28 20:19:10 +08:00
2020-12-03 21:49:32 +08:00
/**
* @description: parent-layout
2020-12-03 21:49:32 +08:00
*/
export const getParentLayout = (_name?: string) => {
2020-12-03 21:49:32 +08:00
return () =>
new Promise((resolve) => {
resolve({
name: PARENT_LAYOUT_NAME,
2020-12-03 21:49:32 +08:00
});
});
};