Newer
Older
robot_dog_patrol_front / src / router / modules / device.ts
// 设备管理
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')

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

export default routes