index.js 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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 login from '@/components/login'
  6. import index from '@/components/index'
  7. import indexGM from '@/components/GM/indexGM'
  8. import studentIndex from '@/components/studentIndex'
  9. import studioIndex from '@/components/studio/index'
  10. import courseDetail from '@/components/courseDetail'
  11. import courseDetailS from '@/components/student/courseDetail'
  12. import courseDetailStudio from '@/components/studio/courseDetail'
  13. import courseDetailNT from '@/components/noTerminal/courseDetail'
  14. import courseDetailGM from '@/components/GM/courseDetailGM'
  15. import mine from '@/components/mine'
  16. import project from '@/components/project'
  17. import works from '@/components/works'
  18. import worksGM from '@/components/GM/worksGM'
  19. import score from '@/components/score'
  20. import notice from '@/components/notice'
  21. import noticeDetail from '@/components/noticeDetail'
  22. import study from '@/components/study'
  23. import liveRoom from '@/components/liveRoom'
  24. import liveProjectDetail from '@/components/liveProjectDetail'
  25. import audioDemo from '@/components/audioDemo'
  26. import cameraDemo from '@/components/cameraDemo'
  27. import studyStudent from '@/components/studyStudent'
  28. import studyStudentS from '@/components/student/studyStudent'
  29. import studyStudentStudio from '@/components/studio/studyStudent'
  30. import studyStudentNT from '@/components/noTerminal/studyStudent'
  31. import studyStudentGM from '@/components/GM/studyStudentGM'
  32. import pdf from '@/components/pdf'
  33. Vue.use(Router).use(ElementUI)
  34. export default new Router({
  35. routes: [
  36. // {
  37. // path: '/login',
  38. // name: 'login',
  39. // component: login
  40. // },
  41. {
  42. path: '/',
  43. redirect: '/index'
  44. },
  45. {
  46. path: '/index',
  47. name: 'index',
  48. component: index,
  49. requireAuth: ''
  50. },
  51. {
  52. path: '/studentIndex',
  53. name: 'studentIndex',
  54. component: studentIndex,
  55. requireAuth: ''
  56. },
  57. {
  58. path: '/indexGM',
  59. name: 'indexGM',
  60. component: indexGM,
  61. requireAuth: ''
  62. },
  63. {
  64. path: '/courseDetail',
  65. name: 'courseDetail',
  66. component: courseDetail,
  67. requireAuth: ''
  68. },
  69. {
  70. path: '/courseDetailGM',
  71. name: 'courseDetailGM',
  72. component: courseDetailGM,
  73. requireAuth: ''
  74. },
  75. {
  76. path: '/mine',
  77. name: 'mine',
  78. component: mine,
  79. requireAuth: ''
  80. },
  81. {
  82. path: '/project',
  83. name: 'project',
  84. component: project,
  85. requireAuth: ''
  86. },
  87. {
  88. path: '/works',
  89. name: 'works',
  90. component: works,
  91. requireAuth: ''
  92. },
  93. {
  94. path: '/worksGM',
  95. name: 'worksGM',
  96. component: worksGM,
  97. requireAuth: ''
  98. },
  99. {
  100. path: '/score',
  101. name: 'score',
  102. component: score,
  103. requireAuth: ''
  104. },
  105. {
  106. path: '/notice',
  107. name: 'notice',
  108. component: notice,
  109. requireAuth: ''
  110. },
  111. {
  112. path: '/noticeDetail',
  113. name: 'noticeDetail',
  114. component: noticeDetail,
  115. requireAuth: ''
  116. },
  117. {
  118. path: '/study',
  119. name: 'study',
  120. component: study,
  121. requireAuth: ''
  122. },
  123. {
  124. path: '/liveRoom',
  125. name: 'liveRoom',
  126. component: liveRoom,
  127. requireAuth: ''
  128. },
  129. {
  130. path: '/liveProjectDetail',
  131. name: 'liveProjectDetail',
  132. component: liveProjectDetail,
  133. requireAuth: ''
  134. },
  135. {
  136. path: '/audioDemo',
  137. name: 'audioDemo',
  138. component: audioDemo,
  139. requireAuth: ''
  140. },
  141. {
  142. path: '/cameraDemo',
  143. name: 'cameraDemo',
  144. component: cameraDemo,
  145. requireAuth: ''
  146. },
  147. {
  148. path: '/studyStudent',
  149. name: 'studyStudent',
  150. component: studyStudent,
  151. requireAuth: ''
  152. },{
  153. path: '/studyStudentGM',
  154. name: 'studyStudentGM',
  155. component: studyStudentGM,
  156. requireAuth: ''
  157. },{
  158. path: '/pdf',
  159. name: 'pdf',
  160. component: pdf,
  161. requireAuth: ''
  162. },
  163. {
  164. path: '/studyStudentS',
  165. name: 'studyStudentS',
  166. component: studyStudentS,
  167. requireAuth: ''
  168. }, {
  169. path: '/courseDetailS',
  170. name: 'courseDetailS',
  171. component: courseDetailS,
  172. requireAuth: ''
  173. },
  174. {
  175. path: '/studyStudentNT',
  176. name: 'studyStudentNT',
  177. component: studyStudentNT,
  178. requireAuth: ''
  179. }, {
  180. path: '/courseDetailNT',
  181. name: 'courseDetailNT',
  182. component: courseDetailNT,
  183. requireAuth: ''
  184. }, {
  185. path: '/studioIndex',
  186. name: 'studioIndex',
  187. component: studioIndex,
  188. requireAuth: ''
  189. }, {
  190. path: '/courseDetailStudio',
  191. name: 'courseDetailStudio',
  192. component: courseDetailStudio,
  193. requireAuth: ''
  194. }, {
  195. path: '/studyStudentStudio',
  196. name: 'studyStudentStudio',
  197. component: studyStudentStudio,
  198. requireAuth: ''
  199. }
  200. ]
  201. })