import type { AppRouteRecordRaw } from '/@/router/types'; import { t } from '/@/hooks/web/useI18n'; import { REDIRECT_NAME, LAYOUT, EXCEPTION_COMPONENT, PAGE_NOT_FOUND_NAME, QIANKUN_ROUTE_NAME, QIANKUN_COMPONENT } from '/@/router/constant'; // 404 on a page export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = { path: '/:path(.*)*', name: PAGE_NOT_FOUND_NAME, component: LAYOUT, meta: { title: 'ErrorPage', hideBreadcrumb: true, hideMenu: true, }, children: [ { path: '/:path(.*)*', name: PAGE_NOT_FOUND_NAME, component: EXCEPTION_COMPONENT, meta: { title: 'ErrorPage', hideBreadcrumb: true, hideMenu: true, }, ver: '1', }, ], ver: '1', }; export const DeviceTableRoute: AppRouteRecordRaw = { path: '/monitorChannel/deviceMonitor', name: 'deviceMonitor', component: LAYOUT, meta: { title: '设备监测', hideBreadcrumb: true, hideMenu: true, }, children: [ { path: '/:id', name: '', component: () => import('/@/views/vent/monitorManager/safetyMonitor/index.vue'), meta: { title: '', hideBreadcrumb: true, hideMenu: true, }, ver: '1', }, ], ver: '1', }; export const QIANKUN_ROUTE: AppRouteRecordRaw = { path: '/micro-:path(.*)*', name: QIANKUN_ROUTE_NAME, component: LAYOUT, meta: { title: '子应用', hideBreadcrumb: true, hideMenu: true, }, children: [ { path: '/micro-vent-3dModal/gas/home', name: 'gas-home', component: () => import('/@/views/vent/gas/gasHome/index.vue'), meta: { title: '抽采综合管控', hideBreadcrumb: true, hideMenu: true, }, ver: '1', }, { path: '/micro-vent-3dModal/modelchannel/model3D/home', name: 'micro-vent-3dModal-modelchannel-model3D-home', component: () => import('/@/views/vent/home/colliery/index.vue'), meta: { title: '通防综合管控', hideBreadcrumb: true, hideMenu: true, }, ver: '1', }, { path: '/micro-vent-3dModal/gas-pipe-net/home', name: 'gas-pipe-net-home', component: () => import('/@/views/vent/gas/gasPipeNet/index.vue'), meta: { title: '瓦斯管网监测', hideBreadcrumb: true, hideMenu: true, }, ver: '1', }, { path: '/micro-vent-3dModal/dashboard/analysis', name: 'micro-vent-3dModal-dashboard-analysis', component: () => import('/@/views/vent/monitorManager/deviceMonitor/index.vue'), meta: { title: '通防综合管控', hideBreadcrumb: true, hideMenu: true, }, ver: '1', }, { path: '/micro-need-air/:path(.*)*', name: 'micro-need-air', component: () => import('/@/components/vent/micro/needAir.vue'), meta: { title: '需风量分析系统', hideBreadcrumb: true, hideMenu: true, }, ver: '1', }, { path: '/micro-vent-doc/:path(.*)*', name: 'micro-vent-doc', component: () => import('/@/components/vent/micro/ventDoc.vue'), meta: { title: '内业管理系统', hideBreadcrumb: true, hideMenu: true, }, ver: '1', }, ], ver: '1', }; export const REDIRECT_ROUTE: AppRouteRecordRaw = { path: '/redirect', component: LAYOUT, name: 'RedirectTo', meta: { title: REDIRECT_NAME, hideBreadcrumb: true, hideMenu: true, }, children: [ { path: '/redirect/:path(.*)', name: REDIRECT_NAME, component: () => import('/@/views/sys/redirect/index.vue'), meta: { title: REDIRECT_NAME, hideBreadcrumb: true, }, ver: '1', }, ], ver: '1', }; export const ERROR_LOG_ROUTE: AppRouteRecordRaw = { path: '/error-log', name: 'ErrorLog', component: LAYOUT, redirect: '/error-log/list', meta: { title: 'ErrorLog', hideBreadcrumb: true, hideChildrenInMenu: true, }, children: [ { path: 'list', name: 'ErrorLogList', component: () => import('/@/views/sys/error-log/index.vue'), meta: { title: t('routes.basic.errorLogList'), hideBreadcrumb: true, currentActiveMenu: '/error-log', }, ver: '1', }, ], ver: '1', };