提交 | 用户 | 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'); |
00fe0e
|
13 |
export const EMAILLAYOUT = () => import('@/layouts/default/email.vue'); |
c303ec
|
14 |
|
V |
15 |
/** |
e12c58
|
16 |
* @description: parent-layout |
c303ec
|
17 |
*/ |
e12c58
|
18 |
export const getParentLayout = (_name?: string) => { |
c303ec
|
19 |
return () => |
V |
20 |
new Promise((resolve) => { |
|
21 |
resolve({ |
c37a15
|
22 |
name: _name || PARENT_LAYOUT_NAME, |
c303ec
|
23 |
}); |
V |
24 |
}); |
|
25 |
}; |