import Layout from '@/layout/index.vue'
export default [
  {
    path: '/taskManage',
    component: Layout,
    redirect: '/taskManage/allTask',
    name: 'Task',
    title: '任务管理',
    meta: {
      title: '任务管理'
    },
    children: [
      {
        path: 'all',
        component: () => import('@/views/task-manage/all-task/index.vue'),
        name: 'TaskAll',
        title: '所有任务',
        meta: {
          title: '所有任务'
        }
      }
    ]
  },
  {
    path: '/system',
    component: Layout,
    redirect: '/system/user',
    name: 'System',
    title: '系统管理',
    meta: {
      title: '系统管理'
    },
    children: [
      {
        path: 'user',
        component: () => import('@/views/system-manage/user-manage/index.vue'),
        name: 'SystemUser',
        title: '用户管理',
        meta: {
          title: '用户管理'
        }
      },
      {
        path: 'role',
        component: () => import('@/views/system-manage/role-manage/index.vue'),
        name: 'SystemRole',
        title: '角色管理',
        meta: {
          title: '角色管理'
        }
      },
      {
        path: 'dept',
        component: () => import('@/views/system-manage/department-manage/index.vue'),
        name: 'SystemDept',
        title: '部门管理',
        meta: {
          title: '部门管理'
        }
      },
      {
        path: 'menu',
        component: () => import('@/views/system-manage/menu-manage/index.vue'),
        name: 'SystemMenu',
        title: '菜单管理',
        meta: {
          title: '菜单管理'
        }
      }
    ]
  }
]

