/* routes-list */

// const APP_NAME = process.env.VUE_APP_NAME;

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

export default [
  {
    path: '/cmt',
    name: 'cmt',
    component: () => import('@/views/cmt/center/index'),
    meta: { title: '技术状态管理', alive: true }
  },
  {
    path: '/cc',
    component: App,
    name: 'cc',
    meta: { title: '技术状态管理', icon: 'xitong' },
    redirect: '/cc/add',
    children: [
      {
        hidden: true,
        path: 'addEcn',
        name: 'ccAddEcn',
        component: () => import('@/views/newEcn/index'),
        meta: { title: '新建ECN', alive: true }
      },
      {
        hidden: true,
        path: 'addEcn2',
        name: 'ccAddEcn2',
        component: () => import('@/views/newTest/newAndEdit'),
        meta: { title: '新建ECN', alive: true }
      },
      {
        hidden: true,
        path: 'addEcr',
        name: 'ccAddEcr',
        component: () => import('@/views/newEcr/index'),
        meta: { title: '新建ECR', alive: true }
      },
      {
        hidden: true,
        path: 'addPr',
        name: 'ccAddPr',
        component: () => import('@/views/newPr/index'),
        meta: { title: '新建PR', alive: true }
      },
      {
        hidden: true,
        path: 'editPr',
        name: 'ccEditPr',
        component: () => import('@/views/newPr/index'),
        meta: { title: '编辑PR' }
      },
      {
        hidden: true,
        path: 'edit',
        name: 'ccEdit',
        component: () => import('@/views/cmt/changePlan/index'),
        meta: { title: '编辑' }
      },
      {
        hidden: true,
        path: 'newDcr',
        name: 'newDcr',
        component: () => import('@/views/newDcr/index'),
        meta: { title: '新建DCR' }
      }
    ]
  }
]