import Layout from '@/layout';
const userdeviceRoutes = {
  path: '/userdevice',
  component: Layout,
  redirect: '/userdevice/index',
  name: 'Devices',
  alwaysShow: true,
  meta: {
    title: '用户设备管理',
    icon: 'device',
    permissions: ['view menu userdevice'],
  },
  children: [
    {
      path: 'device',
      component: () => import('@/views/userdevice/index'),
      name: 'Device',
      meta: { title: '设备列表', icon: 'devicelist' },
    },
    // {
    //   path: 'categories',
    //   component: () => import('@/views/device/categories'),
    //   name: 'Categories',
    //   meta: { title: '设备分类', icon: 'tree-table', permissions: ['manage categories'] },
    // },
    {
      path: 'DeviceStutus',
      component: () => import('@/views/device/devicedtutus'),
      name: 'DeviceStutus',
      meta: { title: '设备废纸篓', icon: 'devicestutus' },
    },
    {
      path: 'addDevice',
      component: () => import('@/views/device/addDevice'),
      name: 'addDevice',
      meta: { title: '添加设备', icon: 'deviceadd' },
    },
  ],
};
export default userdeviceRoutes;
