Sanakey
2024-08-21 7b684b71e37e765d8047b30d53691dd88bd70000
提交 | 用户 | age
a09a0e 1 export const REDIRECT_NAME = 'Redirect';
e12c58 2
V 3 export const PARENT_LAYOUT_NAME = 'ParentLayout';
a09a0e 4
237e65 5 export const PAGE_NOT_FOUND_NAME = 'PageNotFound';
6
4d2fb0 7 export const EXCEPTION_COMPONENT = () => import('@/views/sys/exception/Exception.vue');
2f6253 8
9 /**
10  * @description: default layout
11  */
4d2fb0 12 export const LAYOUT = () => import('@/layouts/default/index.vue');
c303ec 13
V 14 /**
e12c58 15  * @description: parent-layout
c303ec 16  */
e12c58 17 export const getParentLayout = (_name?: string) => {
c303ec 18   return () =>
V 19     new Promise((resolve) => {
20       resolve({
c37a15 21         name: _name || PARENT_LAYOUT_NAME,
c303ec 22       });
V 23     });
24 };