12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import Vue from 'vue'
- import VueRouter from 'vue-router'
- import Index from '../views/learn-center/index.vue'
- Vue.use(VueRouter)
- const routes = [{
- path: '/',
- redirect: '/EnterSys'
- },
- // 教培中心
- {
- path: '/EnterSys',
- name: 'Index',
- component: Index
- },
- {
- path: '/login',
- name: 'login',
- component: () =>
- import('../views/login.vue'),
- },
- {
- path: '/learnCenterIndex',
- name: 'learnCenterIndex',
- component: () =>
- import('../views/learn-center/index.vue')
- },
- {
- path: '/learncenter/ListPage',
- name: 'learnCenterListpage',
- component: () =>
- import('../views/learn-center/ListPage.vue')
- },
- {
- path: '/learncenter/TextbookDetail',
- name: 'learnCenterTextbookDetail',
- component: () =>
- import('../views/learn-center/TextbookDetail.vue')
- },
- {
- path: '/learncenter/CourseDetail',
- name: 'learnCenterCourseDetail',
- component: () =>
- import('../views/learn-center/CourseDetail.vue')
- },
- {
- path: '/learncenter/Seekresult',
- name: 'learnCenterSeekresult',
- component: () =>
- import('../views/learn-center/Seekresult.vue')
- },
- {
- path: '/learncenter/Learnresource',
- name: 'learnCenterLearnresource',
- component: () =>
- import('../views/learn-center/Learnresource.vue')
- },
- {
- path: '/404',
- component: () =>
- import('@/views/404'),
- hidden: true
- },
- // 404 page must be placed at the end !!!
- { path: '*', redirect: '/', hidden: true }
- ]
- const createRouter = () => new VueRouter({
- //mode: 'history', // require service support
- scrollBehavior: () => ({ y: 0 }),
- routes: routes
- })
- const router = createRouter()
- export default router
|