constant.ts 882 B

1234567891011121314151617181920212223242526272829303132
  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 QIANKUN_ROUTE_OUTER_NAME = 'MicroAppOuter';
  6. // 暂时修改
  7. export const EXCEPTION_COMPONENT = () => import('/@/views/sys/exception/Exception.vue');
  8. // export const EXCEPTION_COMPONENT = () => import('/@/views/vent/monitorManager/mainFanMonitor/index.vue');
  9. export const QIANKUN_COMPONENT = () => import('/@/components/vent/micro/ventModal.vue');
  10. /**
  11. * @description: default layout
  12. */
  13. export const LAYOUT = () => import('/@/layouts/default/index.vue');
  14. /**
  15. * @description: parent-layout
  16. */
  17. export const getParentLayout = (_name?: string) => {
  18. return () =>
  19. new Promise((resolve) => {
  20. resolve({
  21. name: _name || PARENT_LAYOUT_NAME,
  22. });
  23. });
  24. };