12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- import Vue from 'vue';
- import Router from 'vue-router';
- import tab from 'components/tab';
- import Login from '@/pages/login/Login';
- import Layout from '@/pages/layout/Layout';
- Vue.use(Router)
- export default new Router({
- // mode: 'history',
- // base: process.env.BASE_URL,
- routes: [
- {
- path: '/login',
- name:'login',
- component: Login,
- },
- {
- path: '/',
- name:'layout',
- component: Layout,
- redirect: '/login',
- hidden: true
- },
- {
- path: '/channel',
- component: Layout,
- children: [{
- path: 'index',
- name:'Channel',
- meta: { title: '渠道管理', url: '/channel/index' },
- component: () => import('@/pages/channel/Channel'),
- }]
- },
- {
- path: '/course',
- component: Layout,
- children: [{
- path: 'index',
- name:'Course',
- meta: { title: '课程管理', url: '/course/index' },
- component: () => import('@/pages/course/Course'),
- }]
- },
- {
- path: '/relation',
- component: Layout,
- children: [{
- path: 'index',
- name:'Relation',
- meta: { title: '课程管理', url: '/relation/index' },
- component: () => import('@/pages/relation/Relation'),
- }]
- },
- {
- path: '/nav',
- component: Layout,
- children: [{
- path: 'nav1',
- name:'Nav1',
- meta: { title: 'nav1', url: '/nav/nav1' },
- component: () => import('@/pages/nav1/Nav1'),
- },{
- path: 'nav2',
- name:'Nav2',
- meta: { title: 'nav2', url: '/nav/nav2' },
- component: () => import('@/pages/nav2/Nav2'),
- }]
- }
- ]
- })
|