index.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. import { createRouter, createWebHashHistory } from "vue-router";
  2. export default createRouter({
  3. history: createWebHashHistory(),
  4. routes: [
  5. {
  6. path: '',
  7. redirect: '/home'
  8. },
  9. {
  10. path: '/home',
  11. name: 'home',
  12. title: '首页',
  13. component: () => import("~/pages/home/index.vue"),
  14. },
  15. {
  16. path: '/zhjy',
  17. name: 'zhjy',
  18. component: () => import("~/pages/zhjy/index.vue"),
  19. },
  20. {
  21. path: '/zhjy/zhjyzxxx',
  22. name: "zhjy_zhjyzxxx",
  23. component: () => import("~/pages/zhjy/zhjyzxxx/index.vue"),
  24. },
  25. {
  26. path: '/zhjy/zhjyzxxx/zxxxxq',
  27. name: "zhjy_zhjyzxxx_zxxxxq",
  28. component: () => import("~/pages/zhjy/zhjyzxxx/zxxxxq/index.vue"),
  29. },
  30. {
  31. path: '/zhjy/zhjyzxxx/zxxxsp',
  32. name: "zhjy_zhjyzxxx_zxxxsp",
  33. component: () => import("~/pages/zhjy/zhjyzxxx/zxxxsp/index.vue"),
  34. },
  35. {
  36. path: '/zhjy/zhjyxtbk',
  37. name: "zhjy_zhjyxtbk",
  38. component: () => import("~/pages/zhjy/zhjyxtbk/index.vue"),
  39. },
  40. {
  41. path: '/zhjy/zhjyxtbk/xtbknr',
  42. name: "zhjy_zhjyxtbk_xtbknr",
  43. component: () => import("~/pages/zhjy/zhjyxtbk/xtbknr/index.vue"),
  44. },
  45. {
  46. path: '/zhjy/zhjytbjy',
  47. name: "zhjy_zhjytbjy",
  48. component: () => import("~/pages/zhjy/zhjytbjy/index.vue"),
  49. },
  50. {
  51. path: '/zhjy/zhjytbjy/tbjynr',
  52. name: "zhjy_zhjytbjy_tbjynr",
  53. component: () => import("~/pages/zhjy/zhjytbjy/tbjynr/index.vue"),
  54. },
  55. {
  56. path: '/ysgc',
  57. name: 'ysgc',
  58. component: () => import("~/pages/ysgc/index.vue"),
  59. },
  60. {
  61. path: '/ysgc_detail',
  62. name: 'ysgc_detail',
  63. component: () => import('~/pages/ysgc/ysgc_detail/index.vue')
  64. },
  65. {
  66. path: '/szmsg',
  67. name: 'szmsg',
  68. component: () => import("~/pages/szmsg/index.vue"),
  69. },
  70. {
  71. path: '/tzkc',
  72. name: 'tzkc',
  73. component: () => import('~/pages/szmsg/tzkc/index.vue'),
  74. },
  75. {
  76. path: '/tzkc_detail',
  77. name: 'tzkc_detail',
  78. component: () => import('~/pages/szmsg/tzkc/tzkc_detail/index.vue')
  79. },
  80. {
  81. path: '/yslm',
  82. name: 'yslm',
  83. component: () => import('~/pages/szmsg/yslm/index.vue')
  84. },
  85. {
  86. path: '/resource',
  87. name: 'resource',
  88. title: '首页',
  89. component: () => import("~/pages/courseResources.vue"),
  90. },
  91. {
  92. path: '/resourceAll',
  93. name: 'resourceAll',
  94. title: '首页',
  95. component: () => import("~/pages/courseResourcesAll.vue"),
  96. },
  97. {
  98. path: '/zbkt',
  99. title: '直播课堂',
  100. children: [
  101. {
  102. path: '',
  103. name: 'zbkt',
  104. component: () => import("~/pages/zbkt/index.vue"),
  105. },
  106. {
  107. path: 'ssys',
  108. children: [
  109. {
  110. path: '',
  111. name: 'ssys',
  112. component: () => import("~/pages/zbkt/ssys/index.vue"),
  113. },
  114. {
  115. path: 'content/:id',
  116. name: 'ssys_content',
  117. component: () => import("~/pages/zbkt/ssys/content.vue"),
  118. props: true
  119. },
  120. {
  121. path: 'rtc/:id',
  122. name: 'ssys_rtc',
  123. component: () => import("~/pages/zbkt/ssys/rtc.vue"),
  124. props: true
  125. },
  126. ]
  127. },
  128. {
  129. path: 'wlzb',
  130. children: [
  131. {
  132. path: '',
  133. name: 'wlzb',
  134. component: () => import("~/pages/zbkt/wlzb/index.vue"),
  135. },
  136. {
  137. path: 'content/:id',
  138. name: 'wlzb_content',
  139. component: () => import("~/pages/zbkt/wlzb/content.vue"),
  140. },
  141. {
  142. path: 'detail/:id',
  143. name: 'wlzb_detail',
  144. component: () => import("~/pages/zbkt/wlzb/detail.vue"),
  145. },
  146. ]
  147. },
  148. {
  149. path: 'ztzb',
  150. children: [
  151. {
  152. path: '',
  153. name: 'ztzb',
  154. component: () => import("~/pages/zbkt/ztzb/index.vue"),
  155. },
  156. {
  157. path: 'content',
  158. name: 'ztzb_content',
  159. component: () => import("~/pages/zbkt/ztzb/content.vue"),
  160. },
  161. ]
  162. }
  163. ]
  164. },
  165. {
  166. path: '/resourceChapter',
  167. name: 'resourceChapter',
  168. title: '课程资源章节',
  169. component: () => import("~/pages/courseResourcesChapter.vue"),
  170. },
  171. {
  172. path: '/resourceFileReview',
  173. name: 'resourceFileReview',
  174. title: '课程资源文件预览',
  175. component: () => import("~/pages/resourceFileReview.vue"),
  176. },
  177. {
  178. path: '/resourceMovReview',
  179. name: 'resourceMovReview',
  180. title: '课程资源视频预览',
  181. component: () => import("~/pages/resourceMovReview.vue"),
  182. },
  183. ]
  184. })