/** 当路由表过长时,可以拆分成小模块 **/ import Layout from '@/layout' const chartsRouter = { path: '/charts', component: Layout, redirect: 'noRedirect', name: 'Charts', meta: { title: '图表管理', // 翻译为中文 icon: 'chart' }, children: [ { path: 'keyboard', component: () => import('@/views/charts/keyboard'), name: 'KeyboardChart', meta: { title: '键盘图表', noCache: true } }, { path: 'line', component: () => import('@/views/charts/line'), name: 'LineChart', meta: { title: '折线图', noCache: true } }, { path: 'mix-chart', component: () => import('@/views/charts/mix-chart'), name: 'MixChart', meta: { title: '混合图表', noCache: true } } ] } export default chartsRouter