constant.ts 952 B

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