25 lines
550 B
TypeScript
25 lines
550 B
TypeScript
export const REDIRECT_NAME = 'Redirect'
|
|
|
|
export const PARENT_LAYOUT_NAME = 'ParentLayout'
|
|
|
|
export const PAGE_NOT_FOUND_NAME = 'PageNotFound'
|
|
|
|
export const EXCEPTION_COMPONENT = () => import('@/views/base/exception/Exception.vue')
|
|
|
|
/**
|
|
* @description: default layout
|
|
*/
|
|
export const LAYOUT = () => import('@/layouts/default/index.vue')
|
|
|
|
/**
|
|
* @description: parent-layout
|
|
*/
|
|
export function getParentLayout(_name?: string) {
|
|
return () =>
|
|
new Promise((resolve) => {
|
|
resolve({
|
|
name: _name || PARENT_LAYOUT_NAME,
|
|
})
|
|
})
|
|
}
|