import layoutHeaderAside from '@/layout/header-aside'

const meta = { requiresAuth: true }

export default {
  path: '/equipment',
  name: 'equipment',
  meta,
  redirect: { name: 'equipment-area' },
  component: layoutHeaderAside,
  children: (pre => [
		{ path: 'area', name: `${pre}area`, component: () => import('@/views/equipment/area'), meta: { meta, title: '区域管理',cache:true } },
   { path: 'online', name: `${pre}online`, component: () => import('@/views/equipment/online'), meta: { meta, title: '设备监控',cache:true } },
	 { path: 'register', name: `${pre}register`, component: () => import('@/views/equipment/register'), meta: { meta, title: '设备登记',cache:true } },
	 { path: 'request', name: `${pre}request`, component: () => import('@/views/equipment/request'), meta: { meta, title: '设备报文',cache:true } }
  ])('equipment-')
}