Sanakey
5 天以前 2af71bcf522c485ea005184c977986374a7dcc4a
src/router/constant.ts
@@ -2,12 +2,15 @@
export const PARENT_LAYOUT_NAME = 'ParentLayout';
export const EXCEPTION_COMPONENT = () => import('../views/sys/exception/Exception.vue');
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 LAYOUT = () => import('@/layouts/default/index.vue');
export const EMAILLAYOUT = () => import('@/layouts/default/email.vue');
/**
 * @description: parent-layout
@@ -16,17 +19,7 @@
  return () =>
    new Promise((resolve) => {
      resolve({
        name: PARENT_LAYOUT_NAME,
        name: _name || PARENT_LAYOUT_NAME,
      });
    });
};
// export const getParentLayout = (name: string) => {
//   return () =>
//     new Promise((resolve) => {
//       resolve({
//         ...ParentLayout,
//         name,
//       });
//     });
// };