Blame view

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

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

/**
15
 * @description: parent-layout
陈文彬 authored
16
 */
17
export const getParentLayout = (_name?: string) => {
vben authored
18
19
20
  return () =>
    new Promise((resolve) => {
      resolve({
21
        name: PARENT_LAYOUT_NAME,
vben authored
22
23
24
      });
    });
};