router.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. Vue.use(VueRouter)
  4. const routes = [{
  5. path: '/',
  6. name: 'Login',
  7. meta: {
  8. keepAlive: true
  9. },
  10. component: () => import('../views/login/index.vue')
  11. }, {
  12. path: '/home',
  13. name: 'Home',
  14. meta: {
  15. keepAlive: true
  16. },
  17. component: () => import('../views/home/index.vue')
  18. },
  19. {
  20. path: '/text',
  21. name: 'Home',
  22. component: () => import('../views/home/text.vue')
  23. },
  24. {
  25. path: '/followUp/director',
  26. name: 'director',
  27. meta: {
  28. keepAlive: true
  29. },
  30. component: () => import('../views/followUp/director.vue')
  31. },
  32. {
  33. path: '/followUp/record',
  34. name: 'record',
  35. component: () => import('../views/followUp/record.vue')
  36. },
  37. {
  38. path: '/followUp/details',
  39. name: 'details',
  40. component: () => import('../views/followUp/details.vue')
  41. },
  42. {
  43. path: '/followUp/historySupervisor',
  44. name: 'historySupervisor',
  45. component: () => import('../views/followUp/historySupervisor.vue')
  46. },
  47. {
  48. path: '/followUp/addfollow',
  49. name: 'historySupervisor',
  50. component: () => import('../views/followUp/addfollow.vue')
  51. },
  52. {
  53. path: '/specialServices/index',
  54. name: 'specialServices',
  55. meta: {
  56. keepAlive: true
  57. },
  58. component: () => import('../views/specialServices/index.vue')
  59. },
  60. {
  61. path: '/specialServices/startServiceplay',
  62. name: 'startServiceplay',
  63. component: () => import('../views/specialServices/startServiceplay.vue')
  64. },
  65. {
  66. path: '/specialServices/details',
  67. name: 'details',
  68. component: () => import('../views/specialServices/details.vue')
  69. },
  70. {
  71. path: '/loveHelp/index',
  72. name: 'loveHelp',
  73. component: () => import('../views/loveHelp/index.vue')
  74. },
  75. {
  76. path: '/loveHelp/details',
  77. name: 'loveHelpdetails',
  78. component: () => import('../views/loveHelp/details.vue')
  79. },
  80. {
  81. path: '/consultation/index',
  82. name: 'consultation',
  83. meta: {
  84. keepAlive: true
  85. },
  86. component: () => import('../views/consultation/index.vue')
  87. },
  88. {
  89. path: '/consultation/details',
  90. name: 'consultationdetails',
  91. component: () => import('../views/consultation/details.vue')
  92. },
  93. {
  94. path: '/reporting/index',
  95. name: 'reporting',
  96. meta: {
  97. keepAlive: true
  98. },
  99. component: () => import('../views/reporting/index.vue')
  100. },
  101. {
  102. path: '/reporting/details',
  103. name: 'reporting',
  104. component: () => import('../views/reporting/details.vue')
  105. }
  106. ]
  107. const router = new VueRouter({
  108. routes
  109. })
  110. export default router