Blame view

src/router/constant.ts 702 Bytes
vben authored
1
2
export const REDIRECT_NAME = 'Redirect';
3
4
export const PARENT_LAYOUT_NAME = 'ParentLayout';
vben authored
5
export const EXCEPTION_COMPONENT = () => import('../views/sys/exception/Exception.vue');
陈文彬 authored
6
7
8
9

/**
 * @description: default layout
 */
vben authored
10
export const LAYOUT = () => import('/@/layouts/default/index.vue');
陈文彬 authored
11
12

/**
13
 * @description: parent-layout
陈文彬 authored
14
 */
15
export const getParentLayout = (_name?: string) => {
vben authored
16
17
18
  return () =>
    new Promise((resolve) => {
      resolve({
19
        name: PARENT_LAYOUT_NAME,
vben authored
20
21
22
      });
    });
};
陈文彬 authored
23
24
25
26
27
28
29
30
31
32
// export const getParentLayout = (name: string) => {
//   return () =>
//     new Promise((resolve) => {
//       resolve({
//         ...ParentLayout,
//         name,
//       });
//     });
// };