// 人员管理
import type { Route } from '@/global'

const Layout = () => import('@/layouts/index.vue')
const routes: Route.recordRaw[] = [
  {
    path: '/person',
    component: Layout,
    redirect: '/person/personlist',
    name: 'person',
    meta: {
      title: '人员管理',
      icon: 'ep:key',
      auth: '/person',
    },
    children: [
      {
        path: 'personlist',
        name: 'personlist',
        component: () => import('@/views/person/index.vue'),
        meta: {
          title: '人员管理',
          auth: '/person',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/person',
        },
      },
      {
        path: 'personedit',
        name: 'personedit',
        component: () => import('@/views/person/personEdit.vue'),
        meta: {
          title: '人员编辑/:type?',
          auth: '/person',
          sidebar: false,
          breadcrumb: true,
          activeMenu: '/person',
        },
      },
    ],
  },
]

export default routes
