routes.js 1.61 KB
Newer Older
wangdanlei's avatar
wangdanlei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/* 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'),
wangdanlei's avatar
wangdanlei committed
19
        meta: { title: '我的任务' }
wangdanlei's avatar
wangdanlei committed
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
      },
      {
        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: '代码编辑器' }
  //     }
  //   ]
  // }

]