constant.ts 1017 B

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