import Vue from 'vue' import Router from 'vue-router' import Login from './views/Login.vue' import Register from './views/Register.vue' import NotFound from './views/404.vue' import Home from './views/Home.vue' import PdfView from './views/pdf/pdfview'; //课程管理 import courselist from './views/coursemanagement/list'; import lecturerList from './views/lecturerManagement/index.vue' import offlineTraining from './views/offlineTraining/offlineTraining.vue' import examCertification from './views/examCertification/examCertification.vue' import gcpCertification from './views/gcpCertification/gcpCertification.vue' import offlineRegistration from './views/offlineRegistration/registration.vue' import hotTopicCarousel from './views/hotTopicCarousel/hotTopicCarousel.vue' Vue.use(Router) export const allRouters = [ { path: '/login', component: Login, name: '', hidden: true }, { path: '/register', component: Register, name: '', hidden: true }, { path: '/viewonline', component: PdfView, name: '', hidden: true }, { path: '/courselist', component: Home, name: '课程管理', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/courselist', component: courselist, name: '课程管理' } ] }, { path: '/lecturer', component: Home, name: '讲师管理', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/lecturer', component: lecturerList, name: '讲师管理' } ] }, { path: '/404', component: NotFound, name: '', hidden: true }, { path: '/exam-certification', component: Home, name: '考试拿证流程介绍', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/exam-certification', component: examCertification, name: '考试拿证流程介绍' }, ] }, { path: '/offline-training', component: Home, name: '线下研修班', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/offline-training', component: offlineTraining, name: '线下研修班' } ] }, { path: '/offline-registration', component: Home, name: '线下研修班报名', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/offline-registration', component: offlineRegistration, name: '线下研修班报名' } ] }, { path: '/hotTopic-carousel', component: Home, name: '轮播热点内容', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/hotTopic-carousel', component: hotTopicCarousel, name: '轮播热点内容' } ] }, { path: '/gcpc-certification', component: Home, name: 'GCP证书展示', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/gcpc-certification', component: gcpCertification, name: 'GCP证书展示' } ] }, { path: '*', hidden: true, redirect: { path: '/404' } } ] export default new Router({ routes: allRouters })