index.js 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 courseDetail from '@/components/courseDetail'
  8. import mine from '@/components/mine'
  9. import project from '@/components/project'
  10. import works from '@/components/works'
  11. import score from '@/components/score'
  12. import notice from '@/components/notice'
  13. import noticeDetail from '@/components/noticeDetail'
  14. import study from '@/components/study'
  15. import liveRoom from '@/components/liveRoom'
  16. import liveProjectDetail from '@/components/liveProjectDetail'
  17. Vue.use(Router).use(ElementUI)
  18. export default new Router({
  19. routes: [
  20. // {
  21. // path: '/login',
  22. // name: 'login',
  23. // component: login
  24. // },
  25. {
  26. path: '/',
  27. redirect: '/index'
  28. },
  29. {
  30. path: '/index',
  31. name: 'index',
  32. component: index,
  33. requireAuth: ''
  34. },
  35. {
  36. path: '/courseDetail',
  37. name: 'courseDetail',
  38. component: courseDetail,
  39. requireAuth: ''
  40. },
  41. {
  42. path: '/mine',
  43. name: 'mine',
  44. component: mine,
  45. requireAuth: ''
  46. },
  47. {
  48. path: '/project',
  49. name: 'project',
  50. component: project,
  51. requireAuth: ''
  52. },
  53. {
  54. path: '/works',
  55. name: 'works',
  56. component: works,
  57. requireAuth: ''
  58. },
  59. {
  60. path: '/score',
  61. name: 'score',
  62. component: score,
  63. requireAuth: ''
  64. },
  65. {
  66. path: '/notice',
  67. name: 'notice',
  68. component: notice,
  69. requireAuth: ''
  70. },
  71. {
  72. path: '/noticeDetail',
  73. name: 'noticeDetail',
  74. component: noticeDetail,
  75. requireAuth: ''
  76. },
  77. {
  78. path: '/study',
  79. name: 'study',
  80. component: study,
  81. requireAuth: ''
  82. },
  83. {
  84. path: '/liveRoom',
  85. name: 'liveRoom',
  86. component: liveRoom,
  87. requireAuth: ''
  88. },
  89. {
  90. path: '/liveProjectDetail',
  91. name: 'liveProjectDetail',
  92. component: liveProjectDetail,
  93. requireAuth: ''
  94. },
  95. ]
  96. })