// 报警管理
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')
const routes: Route.recordRaw[] = [
  {
    path: '/alarm',
    component: Layout,
    redirect: '/alarm/alarmlist',
    name: 'alarm',
    meta: {
      title: '报警管理',
      icon: 'ep:key',
      auth: '/alarm',
    },
    children: [
      {
        path: 'alarmlist',
        name: 'alarmlist',
        component: () => import('@/views/alarm/index.vue'),
        meta: {
          title: '报警管理',
          auth: '/alarm',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/alarm',
        },
      },
    ],
  },
]

export default routes
