Sanakey
5 天以前 2af71bcf522c485ea005184c977986374a7dcc4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export const REDIRECT_NAME = 'Redirect';
 
export const PARENT_LAYOUT_NAME = 'ParentLayout';
 
export const PAGE_NOT_FOUND_NAME = 'PageNotFound';
 
export const EXCEPTION_COMPONENT = () => import('@/views/sys/exception/Exception.vue');
 
/**
 * @description: default layout
 */
export const LAYOUT = () => import('@/layouts/default/index.vue');
export const EMAILLAYOUT = () => import('@/layouts/default/email.vue');
 
/**
 * @description: parent-layout
 */
export const getParentLayout = (_name?: string) => {
  return () =>
    new Promise((resolve) => {
      resolve({
        name: _name || PARENT_LAYOUT_NAME,
      });
    });
};