1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- import Vue from 'vue'
- import Router from 'vue-router'
- import ElementUI from 'element-ui'
- import 'element-ui/lib/theme-chalk/index.css'
- import login from '@/components/login'
- import index from '@/components/index'
- import courseDetail from '@/components/courseDetail'
- import mine from '@/components/mine'
- import project from '@/components/project'
- import works from '@/components/works'
- import score from '@/components/score'
- import notice from '@/components/notice'
- import noticeDetail from '@/components/noticeDetail'
- import study from '@/components/study'
- import liveRoom from '@/components/liveRoom'
- import liveProjectDetail from '@/components/liveProjectDetail'
- Vue.use(Router).use(ElementUI)
- export default new Router({
- routes: [
- // {
- // path: '/login',
- // name: 'login',
- // component: login
- // },
- {
- path: '/',
- redirect: '/index'
- },
- {
- path: '/index',
- name: 'index',
- component: index,
- requireAuth: ''
- },
- {
- path: '/courseDetail',
- name: 'courseDetail',
- component: courseDetail,
- requireAuth: ''
- },
- {
- path: '/mine',
- name: 'mine',
- component: mine,
- requireAuth: ''
- },
- {
- path: '/project',
- name: 'project',
- component: project,
- requireAuth: ''
- },
- {
- path: '/works',
- name: 'works',
- component: works,
- requireAuth: ''
- },
- {
- path: '/score',
- name: 'score',
- component: score,
- requireAuth: ''
- },
- {
- path: '/notice',
- name: 'notice',
- component: notice,
- requireAuth: ''
- },
- {
- path: '/noticeDetail',
- name: 'noticeDetail',
- component: noticeDetail,
- requireAuth: ''
- },
- {
- path: '/study',
- name: 'study',
- component: study,
- requireAuth: ''
- },
- {
- path: '/liveRoom',
- name: 'liveRoom',
- component: liveRoom,
- requireAuth: ''
- },
- {
- path: '/liveProjectDetail',
- name: 'liveProjectDetail',
- component: liveProjectDetail,
- requireAuth: ''
- },
- ]
- })
|