vben
authored
|
1
2
|
export const REDIRECT_NAME = 'Redirect';
|
Vben
authored
|
3
4
|
export const PARENT_LAYOUT_NAME = 'ParentLayout';
|
vben
authored
|
5
|
export const EXCEPTION_COMPONENT = () => import('../views/sys/exception/Exception.vue');
|
|
6
7
8
9
|
/**
* @description: default layout
*/
|
vben
authored
|
10
|
export const LAYOUT = () => import('/@/layouts/default/index.vue');
|
|
11
12
|
/**
|
Vben
authored
|
13
|
* @description: parent-layout
|
|
14
|
*/
|
Vben
authored
|
15
|
export const getParentLayout = (_name?: string) => {
|
vben
authored
|
16
17
18
|
return () =>
new Promise((resolve) => {
resolve({
|
Vben
authored
|
19
|
name: PARENT_LAYOUT_NAME,
|
vben
authored
|
20
21
22
|
});
});
};
|
|
23
|
|
Vben
authored
|
24
25
26
27
28
29
30
31
32
|
// export const getParentLayout = (name: string) => {
// return () =>
// new Promise((resolve) => {
// resolve({
// ...ParentLayout,
// name,
// });
// });
// };
|