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

const meta = { requiresAuth: true }

export default {
  path: '/permission',
  name: 'permission',
  meta,
  redirect: { name: 'permission-org' },
  component: layoutHeaderAside,
  children: (pre => [
   { path: 'org', name: `${pre}org`, component: () => import('@/views/permission/org'), meta: { meta, title: '机构权限',cache:true } },
	 { path: 'role', name: `${pre}role`, component: () => import('@/views/permission/role'), meta: { meta, title: '角色权限',cache:true } },
	 { path: 'user', name: `${pre}user`, component: () => import('@/views/permission/user'), meta: { meta, title: '用户权限',cache:true } }
  ])('permission-')
}