index.js 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import ElementUI from 'element-ui'
  4. import 'element-ui/lib/theme-chalk/index.css'
  5. import classA from '@/components/pages/class'
  6. import course from '@/components/pages/course'
  7. import courseDetail from '@/components/pages/courseDetail'
  8. import data from '@/components/pages/data'
  9. import notice from '@/components/pages/notice'
  10. import student from '@/components/pages/student'
  11. import works from '@/components/pages/works'
  12. import worksDetail from '@/components/pages/worksDetail'
  13. import login from '@/components/login'
  14. import ask from '@/components/pages/ask'
  15. import addCourse from '@/components/pages/addCourse'
  16. import library from '@/components/pages/library'
  17. import note from '@/components/pages/note'
  18. import Grid from '@/components/pages/Grid'
  19. import demo from '@/components/pages/demo'
  20. import classRoom from '@/components/pages/classRoom'
  21. import liveRoom from '@/components/pages/liveRoom'
  22. import liveRoomKQ from '@/components/pages/liveRoomKQ'
  23. import addPPt from '@/components/pages/addPPt'
  24. import studyLibrary from '@/components/pages/studyLibrary'
  25. import evaluation from '@/components/pages/evaluation'
  26. import GridList from '@/components/pages/GridList'
  27. import wordList from '@/components/pages/wordList'
  28. import demoPdf from '@/components/pages/demoPdf'
  29. import demoPdf2 from '@/components/pages/demoPdf2'
  30. import audioDemo from '@/components/pages/audioDemo'
  31. import Ttype from '@/components/pages/Ttype'
  32. import banner from '@/components/pages/banner'
  33. import CaseDesign from '@/components/pages/CaseDesign'
  34. import eventCenter from '@/components/pages/race/eventCenter'
  35. import addRace from '@/components/pages/race/addRace'
  36. Vue.use(Router).use(ElementUI)
  37. export default new Router({
  38. routes: [{
  39. path: '/class',
  40. name: 'class',
  41. component: classA,
  42. meta: {
  43. requireAuth: ''
  44. }
  45. },
  46. // {
  47. // path: '/',
  48. // redirect: '/course',
  49. // },
  50. {
  51. path: '/course',
  52. component: course,
  53. meta: {
  54. requireAuth: '' // 是否需要判断是否登录,这里是需要判断
  55. }
  56. },
  57. {
  58. path: '/course/courseDetail',
  59. component: courseDetail,
  60. meta: {
  61. requireAuth: '' // 是否需要判断是否登录,这里是需要判断
  62. }
  63. },
  64. {
  65. path: '/course/addCourse',
  66. component: addCourse,
  67. meta: {
  68. requireAuth: '' // 是否需要判断是否登录,这里是需要判断
  69. }
  70. },
  71. {
  72. path: '/data',
  73. name: 'data',
  74. component: data,
  75. meta: {
  76. requireAuth: '' // 是否需要判断是否登录,这里是需要判断
  77. }
  78. }, {
  79. path: '/notice',
  80. name: 'notice',
  81. component: notice,
  82. meta: {
  83. requireAuth: '' // 是否需要判断是否登录,这里是需要判断
  84. }
  85. },
  86. {
  87. path: '/student',
  88. name: 'student',
  89. component: student,
  90. meta: {
  91. requireAuth: '' // 是否需要判断是否登录,这里是需要判断
  92. }
  93. },
  94. {
  95. path: '/ask',
  96. name: 'ask',
  97. component: ask,
  98. meta: {
  99. requireAuth: '' // 是否需要判断是否登录,这里是需要判断
  100. }
  101. },
  102. {
  103. path: '/ask/askList',
  104. name: 'askList',
  105. component: () =>
  106. import ('@/components/pages/askList'),
  107. meta: {}
  108. },
  109. {
  110. path: '/works',
  111. name: 'works',
  112. component: works,
  113. meta: {
  114. requireAuth: '' // 是否需要判断是否登录,这里是需要判断
  115. }
  116. },
  117. {
  118. path: '/worksDetail',
  119. name: 'worksDetail',
  120. component: worksDetail,
  121. meta: {
  122. requireAuth: '' // 是否需要判断是否登录,这里是需要判断
  123. }
  124. },
  125. {
  126. path: '/library',
  127. name: 'library',
  128. component: library,
  129. meta: {
  130. requireAuth: '' // 是否需要判断是否登录,这里是需要判断
  131. }
  132. },
  133. {
  134. path: '/login',
  135. name: 'login',
  136. component: login,
  137. meta: {
  138. requireAuth: '' // 不需要鉴权
  139. }
  140. },
  141. {
  142. path: '/note',
  143. name: 'note',
  144. component: note,
  145. meta: {
  146. requireAuth: '' // 不需要鉴权
  147. }
  148. },
  149. {
  150. path: '/Grid',
  151. name: 'Grid',
  152. component: Grid,
  153. meta: {
  154. requireAuth: '' // 不需要鉴权
  155. }
  156. },
  157. {
  158. path: '/demo',
  159. name: 'demo',
  160. component: demo,
  161. meta: {
  162. requireAuth: '' // 不需要鉴权
  163. }
  164. },
  165. {
  166. path: '/classRoom',
  167. name: 'classRoom',
  168. component: classRoom,
  169. meta: {
  170. requireAuth: '' // 不需要鉴权
  171. }
  172. },
  173. {
  174. path: '/liveRoom',
  175. name: 'liveRoom',
  176. component: liveRoom,
  177. meta: {
  178. requireAuth: '' // 不需要鉴权
  179. }
  180. }, {
  181. path: '/liveRoomKQ',
  182. name: 'liveRoomKQ',
  183. component: liveRoomKQ,
  184. meta: {
  185. requireAuth: '' // 不需要鉴权
  186. }
  187. },
  188. {
  189. path: '/addPPt',
  190. name: 'addPPt',
  191. component: addPPt,
  192. meta: {
  193. requireAuth: '' // 不需要鉴权
  194. }
  195. },
  196. {
  197. path: '/studyLibrary',
  198. name: 'studyLibrary',
  199. component: studyLibrary,
  200. meta: {
  201. requireAuth: '' // 不需要鉴权
  202. }
  203. },
  204. {
  205. path: '/evaluation',
  206. name: 'evaluation',
  207. component: evaluation,
  208. meta: {
  209. requireAuth: '' // 不需要鉴权
  210. }
  211. },
  212. {
  213. path: '/GridList',
  214. name: 'GridList',
  215. component: GridList,
  216. meta: {
  217. requireAuth: '' // 不需要鉴权
  218. }
  219. },
  220. {
  221. path: '/wordList',
  222. name: 'wordList',
  223. component: wordList,
  224. meta: {
  225. requireAuth: '' // 不需要鉴权
  226. }
  227. }, {
  228. path: '/demoPdf',
  229. name: 'demoPdf',
  230. component: demoPdf,
  231. meta: {
  232. requireAuth: '' // 不需要鉴权
  233. }
  234. }, {
  235. path: '/demoPdf2',
  236. name: 'demoPdf2',
  237. component: demoPdf2,
  238. meta: {
  239. requireAuth: '' // 不需要鉴权
  240. }
  241. }, {
  242. path: '/audioDemo',
  243. name: 'audioDemo',
  244. component: audioDemo,
  245. meta: {
  246. requireAuth: '' // 不需要鉴权
  247. }
  248. }, {
  249. path: '/Ttype',
  250. name: 'Ttype',
  251. component: Ttype,
  252. meta: {
  253. requireAuth: '' // 不需要鉴权
  254. }
  255. }, {
  256. path: '/banner',
  257. name: 'banner',
  258. component: banner,
  259. meta: {
  260. requireAuth: '' // 不需要鉴权
  261. }
  262. }, {
  263. path: '/CaseDesign',
  264. name: 'CaseDesign',
  265. component: CaseDesign,
  266. meta: {
  267. requireAuth: '' // 不需要鉴权
  268. }
  269. }, {
  270. path: '/eventCenter',
  271. name: 'eventCenter',
  272. component: eventCenter,
  273. meta: {
  274. requireAuth: '' // 不需要鉴权
  275. }
  276. }, {
  277. path: '/addRace',
  278. name: 'addRace',
  279. component: addRace,
  280. meta: {
  281. requireAuth: '' // 不需要鉴权
  282. }
  283. },
  284. ]
  285. })