charts.js 836 B

123456789101112131415161718192021222324252627282930313233343536
  1. /** 当路由表过长时,可以拆分成小模块 **/
  2. import Layout from '@/layout'
  3. const chartsRouter = {
  4. path: '/charts',
  5. component: Layout,
  6. redirect: 'noRedirect',
  7. name: 'Charts',
  8. meta: {
  9. title: '图表管理', // 翻译为中文
  10. icon: 'chart'
  11. },
  12. children: [
  13. {
  14. path: 'keyboard',
  15. component: () => import('@/views/charts/keyboard'),
  16. name: 'KeyboardChart',
  17. meta: { title: '键盘图表', noCache: true }
  18. },
  19. {
  20. path: 'line',
  21. component: () => import('@/views/charts/line'),
  22. name: 'LineChart',
  23. meta: { title: '折线图', noCache: true }
  24. },
  25. {
  26. path: 'mix-chart',
  27. component: () => import('@/views/charts/mix-chart'),
  28. name: 'MixChart',
  29. meta: { title: '混合图表', noCache: true }
  30. }
  31. ]
  32. }
  33. export default chartsRouter