import Layout from '@/layout'

const userRouter = {
  path: '/user',
  component: Layout,
  redirect: 'noRedirect',
  name: 'user',
  meta: {
    title: '用戶管理',
    icon: 'system-setting'
  },
  children: [
    {
      path: '/user/manager',
      component: () => import('@/views/user/list'),
      name: 'userManager',
      hidden: false,
      meta: { title: '用户管理' }
    },
    {
      path: '/user/add',
      component: () => import('@/views/user/add'),
      name: 'userAdd',
      hidden: true,
      meta: { title: '用户添加' }
    }
  ]
}
export default userRouter
