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

const meta = { requiresAuth: true }

export default {
  path: '/face',
  name: 'face',
  meta,
  redirect: { name: 'face-setInterface' },
  component: layoutHeaderAside,
  children: (pre => [
		{ path: 'setInterface', name: `${pre}setInterface`, component: () => import('@/views/face/setInterface'), meta: { meta, title: '前置机配置',cache:true} },
		{ path: 'device', name: `${pre}device`, component: () => import('@/views/face/device'), meta: { meta, title: '设备管理',cache:true} },
		{ path: 'tongXing', name: `${pre}tongXing`, component: () => import('@/views/face/tongXing'), meta: { meta, title: '通行权限',cache:true} },
    { path: 'faceManage', name: `${pre}faceManage`, component: () => import('@/views/face/faceManage'), meta: { meta, title: '人脸管理',cache:true} },
    { path: 'userRights', name: `${pre}userRights`, component: () => import('@/views/face/userRights'), meta: { meta, title: '人员授权',cache:true} },
    { path: 'record', name: `${pre}record`, component: () => import('@/views/face/record'), meta: { meta, title: '人脸记录',cache:true} },
		{ path: 'inquiry', name: `${pre}inquiry`, component: () => import('@/views/face/inquiry'), meta: { meta, title: '任务查询',cache:true} },
  ])('face-')
}