import type { RouteRecordRaw } from 'vue-router'

const routers: Array<RouteRecordRaw> = [
  {
    path: 'designer',
    name: 'Designer',
    component: () => import('@/views/designer/ProcessDesignContainer.vue'),
    meta: {
      title: '模拟用户',
      anonymous: false,
      keepAlive: true
    }
  },
  {
    path: 'mock-user',
    name: 'MockUser',
    component: () => import('@/views/workflow/MockUserSelector.vue'),
    meta: {
      title: '模拟用户',
      anonymous: false,
      keepAlive: true
    }
  },
  {
    path: 'user-task-list',
    name: 'UserTask',
    component: () => import('@/views/workflow/UserTaskList.vue'),
    meta: {
      title: '用户待办',
      anonymous: false,
      keepAlive: true
    }
  },
  {
    path: 'process-list',
    name: 'Process',
    component: () => import('@/views/workflow/ProcessList.vue'),
    meta: {
      title: '当前流程列表',
      anonymous: false,
      keepAlive: true
    }
  },
  {
    path: 'gov-list',
    name: 'Government',
    component: () => import('@/views/government/GovernmentList.vue'),
    meta: {
      title: '政务表单列表',
      anonymous: false,
      keepAlive: true
    }
  },
  {
    path: 'gov-detail-oper',
    name: 'GovernmentDetailOper',
    component: () => import('@/views/government/GovernmentDetailOper.vue'),
    meta: {
      title: '政务表单流转',
      anonymous: false,
      keepAlive: true
    }
  },
  {
    path: 'gov-detail-show',
    name: 'GovernmentDetailShow',
    component: () => import('@/views/government/GovernmentDetailShow.vue'),
    meta: {
      title: '政务表单查看',
      anonymous: false,
      keepAlive: true
    }
  }
]
export default routers
