/* routes-list */

// const APP_NAME = process.env.VUE_APP_NAME;

const App = () => import('./App.vue')

export default [
  {
    path: '/task-center',
    component: App,
    name: 'task-center',
    redirect: '/task-center',
    meta: { title: '任务中心', icon: 'example' },
    children: [
      {
        path: 'index',
        name: 'home',
        component: () => import('@/views/workflow/task-center/home'),
        meta: { title: '我的任务' }
      },
      {
        path: 'task',
        name: 'task',
        component: () => import('@/views/workflow/task-center/task'),
        meta: { title: '任务查询' }
      },
      {
        path: 'process',
        name: 'process',
        component: () => import('@/views/workflow/task-center/process'),
        meta: { title: '流程查询' }
      },
      {
        path: '/task-detail-*',
        name: 'task-detail',
        hidden: true,
        component: () => import('@/views/workflow/task-center/task-detail/index'),
        meta: { title: '任务详情' }
      },
      {
        path: '/pboDetail-*',
        name: 'pboDetail',
        hidden: true,
        component: () => import('@/business-components/tabCom/pboDetail'),
        meta: { title: 'PBO详情' }
      }
    ]
  }
  // {
  //   path: '/codeEdit',
  //   component: App,
  //   name: 'codeEdit',
  //   redirect: '/codeEdit',
  //   meta: { title: '代码编辑器', icon: 'example' },
  //   children: [
  //     {
  //       path: 'index',
  //       name: 'home',
  //       component: () => import('@/views/codeEdit/index'),
  //       meta: { title: '代码编辑器' }
  //     }
  //   ]
  // }

]