// 设备管理
import type { Route } from '@/global'

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

export default routes
