const Main = r =>
  require.ensure([], () => r(require('@/components/layout/main')))
const edIindex = r =>
  require.ensure([], () => r(require('@app/HsEdi/edi_index.vue'))) // 首页
const appList = r =>
  require.ensure([], () => r(require('@app/HsEdi/app_list.vue')))
const system = r =>
  require.ensure([], () => r(require('@app/HsEdi/system.vue')))

const route = [{
  name: '首页',
  path: 'edi_index',
  component: edIindex,
  meta: {
    tabAttr: 'edIindex',
    value: 'edIindex',
    requireAuth: true
  }
},
{
  name: 'APP列表',
  path: 'appList',
  component: appList,
  meta: {
    tabAttr: 'appList',
    value: 'appList'
  }
},
{
  name: '系统升级',
  path: 'system',
  component: system,
  meta: {
    tabAttr: 'system',
    value: 'system',
    requireAuth: false
  }
}
]
export default {
  name: 'hsEdi',
  path: '/hs',
  component: Main,
  children: route
}
