router.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. Vue.use(VueRouter)
  4. const routes = [{
  5. path: '/',
  6. name: 'Home',
  7. meta: {
  8. keepAlive: true
  9. },
  10. component: () => import('../views/home/index.vue')
  11. },
  12. {
  13. path: '/newsDetails',
  14. name: 'NewsDetails',
  15. meta: {
  16. keepAlive: false
  17. },
  18. component: () => import('../views/home/newsDetails.vue')
  19. },
  20. {
  21. path: '/classRoom',
  22. name: 'classRoom',
  23. meta: {
  24. keepAlive: true
  25. },
  26. component: () => import('../views/classRoom/index.vue')
  27. },
  28. {
  29. path: '/shoppingMall',
  30. name: 'shoppingMall',
  31. meta: {
  32. keepAlive: true
  33. },
  34. component: () => import('../views/shoppingMall/index.vue')
  35. },
  36. {
  37. path: '/circleHome',
  38. name: 'circleHome',
  39. meta: {
  40. keepAlive: true
  41. },
  42. component: () => import('../views/circle/index.vue')
  43. },
  44. {
  45. path: '/goodsDetails',
  46. name: 'goodsDetails',
  47. meta: {
  48. keepAlive: false
  49. },
  50. component: () => import('../views/shoppingMall/details.vue')
  51. },
  52. {
  53. path: '/submitOrder',
  54. name: 'submitOrder',
  55. meta: {
  56. keepAlive: false
  57. },
  58. component: () => import('../views/shoppingMall/submitOrder.vue')
  59. },
  60. {
  61. path: '/address',
  62. name: 'address',
  63. meta: {
  64. keepAlive: false
  65. },
  66. component: () => import('../views/address/index.vue')
  67. },
  68. {
  69. path: '/healthAssessmen',
  70. name: 'healthAssessmen',
  71. meta: {
  72. keepAlive: false
  73. },
  74. component: () => import('../views/healthAssessmen/index.vue')
  75. },
  76. {
  77. path: '/estimate',
  78. name: 'estimate',
  79. meta: {
  80. keepAlive: true
  81. },
  82. component: () => import('../views/healthAssessmen/estimate.vue')
  83. },
  84. {
  85. path: '/details',
  86. name: 'estimate',
  87. meta: {
  88. keepAlive: false
  89. },
  90. component: () => import('../views/healthAssessmen/details.vue')
  91. },
  92. {
  93. path: '/typemain',
  94. name: 'estimate',
  95. meta: {
  96. keepAlive: false
  97. },
  98. component: () => import('../views/healthAssessmen/typeDetails/typemain.vue')
  99. },
  100. ]
  101. const router = new VueRouter({
  102. routes
  103. })
  104. export default router