constant.ts 680 B

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