// 动态导入你的组件
function loadView (view) {
  console.log('view', view)
  return () => import(/* webpackChunkName: "view-[request]" */ `@vue2-client/base-client/components/common/${view}`)
}

const routes = [
  // 对于每个路由，你都可以使用 'loadView' 方法动态加载对应的组件
  { path: '/Tree', component: loadView('Tree') },
  { path: '/XStepView', component: loadView('XStepView') },
  { path: '/DynamicStatistics', component: () => import('@vue2-client/pages/DynamicStatistics/index') },
  { path: '/NewDynamicStatistics', component: () => import('@vue2-client/pages/NewDynamicStatistics/index') },
  { path: '/submitTicket', component: () => import('@vue2-client/pages/system/ticket') },
  { path: '/submitTicket/', component: () => import('@vue2-client/pages/system/ticket') }
  // ... 其他路由
]
export default routes
