import { DatabaseOutlined } from '@ant-design/icons-vue'

export default [
  {
    path: '/device',
    name: 'device',
    redirect: '/device/list',
    meta: { title: '设备管理', sort: 2, icon: DatabaseOutlined, isFullScreen: false },
    children: [
      {
        path: '/device/list',
        name: 'deviceList',
        component: () => import('@/views/device/list/index.vue'),
        meta: { title: '设备列表', sort: 1, isFullScreen: false, keepAlive: true },
      },
      {
        path: '/device/detail',
        name: 'deviceDetail',
        component: () => import('@/views/device/detail/index.vue'),
        meta: { title: '设备详情', isFullScreen: false, keepAlive: false, hidden: true },
      },
    ],
  },
]
