index.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import Vue from 'vue';
  2. import VueRouter from 'vue-router';
  3. Vue.use(VueRouter);
  4. const live = [
  5. {
  6. path: '/live',
  7. name: 'live',
  8. component: () => import('../views/index.vue'),
  9. children: [
  10. {
  11. path: '/market/index',
  12. name: 'market_index',
  13. meta: { title: '科技超市', subSite: true },
  14. component: () => import('../views/market/index.vue'),
  15. },
  16. {
  17. path: '/dynamic/index',
  18. name: 'dynamic_index',
  19. meta: { title: '动态监测', subSite: true },
  20. component: () => import('../views/dynamic/index.vue'),
  21. },
  22. {
  23. path: '/dynamic/list',
  24. name: 'dynamic_list',
  25. meta: { title: '动态监测列表', subSite: true },
  26. component: () => import('../views/dynamic/list.vue'),
  27. },
  28. {
  29. path: '/technical/index',
  30. name: 'technical_index',
  31. meta: { title: '技术培训', subSite: true },
  32. component: () => import('../views/technical/index.vue'),
  33. },
  34. {
  35. path: '/technical/list',
  36. name: 'technical_list',
  37. meta: { title: '技术培训列表', subSite: true },
  38. component: () => import('../views/technical/list.vue'),
  39. },
  40. {
  41. path: '/kejipeixun/index',
  42. name: 'kejipeixun_index',
  43. meta: { title: '科技培训', subSite: true },
  44. component: () => import('../views/kejipeixun/index.vue'),
  45. },
  46. {
  47. path: '/kejipeixun/list',
  48. name: 'kejipeixun_list',
  49. meta: { title: '科技培训列表', subSite: true },
  50. component: () => import('../views/kejipeixun/list.vue'),
  51. },
  52. {
  53. path: '/live/service',
  54. meta: { title: '创新服务', subSite: true },
  55. name: 'live_service',
  56. component: () => import('../views/service/index.vue'),
  57. },
  58. ],
  59. },
  60. {
  61. path: '/direct',
  62. name: 'live_direct',
  63. meta: { title: '直播大厅', subSite: true },
  64. component: () => import('../views/direct.vue'),
  65. },
  66. ,
  67. ];
  68. const routes = [...live];
  69. const router = new VueRouter({
  70. routes,
  71. });
  72. export default router;