basic.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. import type { AppRouteRecordRaw } from '/@/router/types';
  2. import { t } from '/@/hooks/web/useI18n';
  3. import { REDIRECT_NAME, LAYOUT, EXCEPTION_COMPONENT, PAGE_NOT_FOUND_NAME, QIANKUN_ROUTE_NAME, QIANKUN_COMPONENT } from '/@/router/constant';
  4. // 404 on a page
  5. export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
  6. path: '/:path(.*)*',
  7. name: PAGE_NOT_FOUND_NAME,
  8. component: LAYOUT,
  9. meta: {
  10. title: 'ErrorPage',
  11. hideBreadcrumb: true,
  12. hideMenu: true,
  13. },
  14. children: [
  15. {
  16. path: '/:path(.*)*',
  17. name: PAGE_NOT_FOUND_NAME,
  18. component: EXCEPTION_COMPONENT,
  19. meta: {
  20. title: 'ErrorPage',
  21. hideBreadcrumb: true,
  22. hideMenu: true,
  23. },
  24. },
  25. ],
  26. };
  27. export const QIANKUN_ROUTE: AppRouteRecordRaw = {
  28. path: '/micro-:path(.*)*',
  29. name: QIANKUN_ROUTE_NAME,
  30. component: LAYOUT,
  31. meta: {
  32. title: '子应用',
  33. hideBreadcrumb: true,
  34. hideMenu: true,
  35. },
  36. children: [
  37. {
  38. path: '/micro-need-air/:path(.*)*',
  39. name: QIANKUN_ROUTE_NAME,
  40. component: QIANKUN_COMPONENT,
  41. meta: {
  42. title: '子应用',
  43. hideBreadcrumb: true,
  44. hideMenu: true,
  45. },
  46. },
  47. {
  48. path: '/micro-vent-3dModal/modelchannel/safety/VentanalyModel3D',
  49. name: QIANKUN_ROUTE_NAME,
  50. component: import('/@/views/demo/threejs/damper.vue'),
  51. meta: {
  52. title: '子应用',
  53. hideBreadcrumb: true,
  54. hideMenu: true,
  55. },
  56. },
  57. // {
  58. // path: '/micro-vent-3dModal',
  59. // name: QIANKUN_ROUTE_NAME,
  60. // component: QIANKUN_COMPONENT,
  61. // meta: {
  62. // title: '子应用',
  63. // hideBreadcrumb: true,
  64. // hideMenu: true,
  65. // },
  66. // children: [
  67. // {
  68. // path: '/modelchannel/safety/VentanalyModel3D',
  69. // name: QIANKUN_ROUTE_NAME,
  70. // component: import('/@/views/demo/threejs/damper.vue'),
  71. // meta: {
  72. // title: '子应用',
  73. // hideBreadcrumb: true,
  74. // hideMenu: true,
  75. // },
  76. // },
  77. // {
  78. // path: ':path(.*)*',
  79. // name: QIANKUN_ROUTE_NAME,
  80. // component: QIANKUN_COMPONENT,
  81. // meta: {
  82. // title: '子应用',
  83. // hideBreadcrumb: true,
  84. // hideMenu: true,
  85. // },
  86. // },
  87. // ],
  88. // },
  89. // {
  90. // path: '/micro-3d-modal-network/:path(.*)*',
  91. // name: QIANKUN_ROUTE_NAME,
  92. // component: import('/@/views/demo/threejs/damper.vue'),
  93. // meta: {
  94. // title: '子应用',
  95. // hideBreadcrumb: true,
  96. // hideMenu: true,
  97. // },
  98. // },
  99. ],
  100. };
  101. export const REDIRECT_ROUTE: AppRouteRecordRaw = {
  102. path: '/redirect',
  103. component: LAYOUT,
  104. name: 'RedirectTo',
  105. meta: {
  106. title: REDIRECT_NAME,
  107. hideBreadcrumb: true,
  108. hideMenu: true,
  109. },
  110. children: [
  111. {
  112. path: '/redirect/:path(.*)',
  113. name: REDIRECT_NAME,
  114. component: () => import('/@/views/sys/redirect/index.vue'),
  115. meta: {
  116. title: REDIRECT_NAME,
  117. hideBreadcrumb: true,
  118. },
  119. },
  120. ],
  121. };
  122. export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
  123. path: '/error-log',
  124. name: 'ErrorLog',
  125. component: LAYOUT,
  126. redirect: '/error-log/list',
  127. meta: {
  128. title: 'ErrorLog',
  129. hideBreadcrumb: true,
  130. hideChildrenInMenu: true,
  131. },
  132. children: [
  133. {
  134. path: 'list',
  135. name: 'ErrorLogList',
  136. component: () => import('/@/views/sys/error-log/index.vue'),
  137. meta: {
  138. title: t('routes.basic.errorLogList'),
  139. hideBreadcrumb: true,
  140. currentActiveMenu: '/error-log',
  141. },
  142. },
  143. ],
  144. };