import type { Route } from '@/global' const Layout = () => import('@/layouts/index.vue') const routes: Route.recordRaw[] = [ { path: '/inspection', component: Layout, redirect: '/inspection/task', name: 'Inspection', meta: { title: '巡检管理', icon: 'ep:key', auth: '/inspection', }, children: [ { path: '/task', component: Layout, redirect: '/task/list', name: 'Task', meta: { title: '巡检任务管理', icon: 'ep:key', auth: '/inspection/task', }, children: [ { path: 'list', name: 'TaskList', component: () => import('@/views/inspection/task/list.vue'), meta: { title: '巡检任务管理', auth: '/inspection/task', sidebar: false, breadcrumb: false, activeMenu: '/task', }, }, ], }, { path: '/gasAlarm', component: Layout, redirect: '/gasAlarm/list', name: 'GasAlarm', meta: { title: '燃气报警管理', icon: 'ep:key', auth: '/inspection/gasAlarm', }, children: [ { path: 'list', name: 'gasAlarmList', component: () => import('@/views/inspection/gas/list.vue'), meta: { title: '燃气报警管理', auth: '/inspection/gasAlarm', sidebar: false, breadcrumb: false, activeMenu: '/gasAlarm', }, }, ], }, ], }, ] export default routes