// 自动生成的文件，请勿修改
import asyncComponent from '@/common/services/async-component'
import routerService from '@/common/services/router-service'

routerService
  .route('/sd-frame')
  .child('sd-mytodolist', {
    // 我的办件
    component:asyncComponent(
    () => import(/* webpackChunkName: "src-flowcenter" */ './sd-todo.vue')
  ),
    meta: {
      getTabKey(route) {
        // 不管路由参数是什么，始终保持一个办件的tab页
        return 'sd-mytodolist'
      },
    },
  })
  .child('sd-mytoreadlist', {
    // 我的阅件
    component:asyncComponent(
    () => import(/* webpackChunkName: "src-flowcenter" */ './sd-toread.vue')
  ),
    meta: {
      getTabKey(route) {
        return 'sd-mytoreadlist'
      },
    },
  })
  // 我的申请
  .child('sd-myapply', {
    component:asyncComponent(
    () => import(/* webpackChunkName: "src-flowcenter" */ './sd-apply.vue')
  ),
  })
  // 我的关注
  .child('sd-mycollect', {
    component:asyncComponent(
    () => import(/* webpackChunkName: "src-flowcenter" */ './sd-collect.vue')
  ),
  })
  // 草稿箱
  .child('sd-drafts-box', {
    component:asyncComponent(
    () => import(/* webpackChunkName: "src-flowcenter" */ './sd-drafts.vue')
  ),
  })
  // 废件箱
  .child('sd-scrap-box', {
    component:asyncComponent(
    () => import(/* webpackChunkName: "src-flowcenter" */ './sd-scrap.vue')
  ),
  })
  // 我的沟通
  .child('sd-mycommunication', {
    component:asyncComponent(
    () => import(/* webpackChunkName: "src-flowcenter" */ './sd-communication.vue')
  ),
  })
// 首页默认是待办列表
routerService.route('/sd-home', {
  component: null,
  redirect: '/sd-frame/sd-mytodolist',
})
routerService.routeInFrame('sd-feedback-list', {
  component:asyncComponent(
    () => import(/* webpackChunkName: "src-flowcenter" */ './sd-feedback-list.vue')
  ),
})
routerService.routeInFrame('sd-interapp-processed-steps', {
  component:asyncComponent(
    () => import(/* webpackChunkName: "src-flowcenter" */ './sd-interapp-processed-steps')
  ),
})
