whiteList.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. const constRouters = [
  2. {
  3. path: '/findpwd'
  4. },
  5. {
  6. path: '/callback'
  7. },
  8. {
  9. path: '/index/portal',
  10. component: () => import('@/views/portal/index.vue')
  11. },
  12. // {
  13. // path: '/portal/notLook',
  14. // component: () => import('@/views/notLook/index.vue'),
  15. // },
  16. {
  17. path: '/',
  18. component: () => import('@/views/resourceCenter/index.vue')
  19. },
  20. {
  21. path: '/portal/resourceDetails',
  22. component: () => import('@/views/resourceDetails/index.vue')
  23. },
  24. {
  25. path: '/portal/personalResources',
  26. component: () => import('@/views/myResources/personalResources/index.vue')
  27. },
  28. {
  29. path: '/portal/resourceManagement',
  30. component: () => import('@/views/myResources/resourceManagement/index.vue')
  31. },
  32. {
  33. path: '/portal/courseCenter',
  34. component: () => import('@/views/courseCenter/index.vue')
  35. },
  36. {
  37. path: '/portal/courseDetails',
  38. component: () => import('@/views/courseDetails/index.vue')
  39. },
  40. {
  41. path: '/portal/courseAdd',
  42. component: () => import('@/views/courseAdd/index.vue')
  43. },
  44. {
  45. path: '/portal/courseManagement',
  46. component: () => import('@/views/courseManagement/index.vue')
  47. },
  48. {
  49. path: '/other',
  50. name: 'other',
  51. component: () => import('@/views/other/index.vue'),
  52. meta: {
  53. title: '其他'
  54. }
  55. },
  56. {
  57. path: '/pay/sample/doJsPay',
  58. name: 'doJsPay',
  59. component: () => import('@/views/pay/sample/doJsPay.vue'),
  60. meta: {
  61. title: '微信JSAPI支付'
  62. }
  63. },
  64. {
  65. path: '/notLook',
  66. name: 'notLook',
  67. component: () => import('@/views/notLook/index.vue'),
  68. meta: {
  69. title: '无权限访问'
  70. }
  71. },
  72. {
  73. path: '/share/:shareBatchNum',
  74. name: 'Share',
  75. component: () => import('@/views/myResource/Share.vue'),
  76. meta: {
  77. title: '分享',
  78. content: {
  79. description: '查看他人分享'
  80. }
  81. },
  82. props: true
  83. },
  84. {
  85. path: '/student/paper/',
  86. name: 'studentPaper',
  87. component: () => import('@/views/student/paper/index.vue'),
  88. meta: {
  89. title: '学生试卷'
  90. }
  91. },
  92. {
  93. path: '/student/edit/',
  94. name: 'studentEdit',
  95. component: () => import('@/views/student/exam/paper/edit.vue'),
  96. meta: {
  97. title: '试卷批改'
  98. }
  99. },
  100. {
  101. path: '/student/record/',
  102. name: 'studentRecord',
  103. component: () => import('@/views/student/record/index.vue'),
  104. meta: {
  105. title: '学生试卷'
  106. }
  107. },
  108. {
  109. path: '/student/questionError/',
  110. name: 'QuestionErrorIndex',
  111. component: () => import('@/views/student/question-error/index.vue'),
  112. meta: {
  113. title: '错题本'
  114. }
  115. },
  116. {
  117. path: '/student/do/',
  118. name: 'studentDo',
  119. component: () => import('@/views/student/exam/paper/do.vue'),
  120. meta: {
  121. title: '试卷答题'
  122. }
  123. },
  124. {
  125. path: '/student/read/',
  126. name: 'studentRead',
  127. component: () => import('@/views/student/exam/paper/read.vue'),
  128. meta: {
  129. title: '试卷查看'
  130. }
  131. },
  132. {
  133. path: '/slogin',
  134. component: () => import('@/views/slogin/login.vue')
  135. },
  136. {
  137. path: '/tlogin',
  138. component: () => import('@/views/tlogin/login.vue')
  139. },
  140. {
  141. path: '/classManagement',
  142. component: () => import('@/views/classManagement/index.vue')
  143. },
  144. {
  145. path: '/announcementManagement',
  146. component: () => import('@/views/announcementManagement/index.vue')
  147. },
  148. {
  149. path: '/questionnaireManagement',
  150. component: () => import('@/views/exm/questionnaireManagement/index.vue')
  151. },
  152. {
  153. path: '/examinationManagement',
  154. component: () => import('@/views/exm/examinationManagement/index.vue')
  155. },
  156. {
  157. path: '/question',
  158. component: () => import('@/views/exm/question/index.vue')
  159. },
  160. {
  161. path: '/exampaper',
  162. component: () => import('@/views/exm/exampaper/index.vue')
  163. },
  164. {
  165. path: '/answerManagement',
  166. component: () => import('@/views/answerManagement/index.vue')
  167. },
  168. {
  169. path: '/courseOpen',
  170. component: () => import('@/views/courseOpen/index.vue')
  171. },
  172. {
  173. path: '/statistics',
  174. component: () => import('@/views/statistics/index.vue'),
  175. },
  176. {
  177. path: '/usercenter',
  178. component: () => import('@/views/sys/user/usercenter.vue'),
  179. },
  180. {
  181. path: '/forum',
  182. component: () => import('@/views/forum/index.vue'),
  183. },
  184. {
  185. path: '/userfileconvert',
  186. component: () => import('@/views/userfileconvert/index.vue'),
  187. }
  188. // {
  189. // path: '/answerManagement',
  190. // component: () => import('@/views/exm/answerManagement/index.vue')
  191. // },
  192. ]
  193. /**
  194. * 路由白名单(数组形式)
  195. *
  196. * 如果组件像登录一样,那就简单的写一个path,即可实现放开,
  197. * 如果组件不在这边的,需要手动添加组件,就像other一样,
  198. * 因为没登陆你没法拿到后端给你返回的那一坨,当然就找不到component
  199. *
  200. * @author yubaoshan
  201. */
  202. export default constRouters