constant.ts 620 B

1234567891011121314151617181920212223242526
  1. export const REDIRECT_NAME = 'Redirect';
  2. export const PARENT_LAYOUT_NAME = 'ParentLayout';
  3. export const PAGE_NOT_FOUND_NAME = 'PageNotFound';
  4. export const PAGE_NOT_FOUND_CHILD = 'PageNotFoundChild';
  5. export const EXCEPTION_COMPONENT = () => import('/@/views/sys/exception/Exception.vue');
  6. /**
  7. * @description: default layout
  8. */
  9. export const LAYOUT = () => import('/@/layouts/default/index.vue');
  10. /**
  11. * @description: parent-layout
  12. */
  13. export const getParentLayout = (_name?: string) => {
  14. return () =>
  15. new Promise((resolve) => {
  16. resolve({
  17. name: _name || PARENT_LAYOUT_NAME,
  18. });
  19. });
  20. };