123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- import Vue from 'vue';
- import Router from 'vue-router';
- Vue.use(Router);
- export default new Router({
- mode: 'history',
- base: process.env.NODE_ENV === 'development' ? '' : 'study',
- routes: [
- {
- path: '/',
- redirect: '/homeIndex',
- },
- {
- path: '/',
- component: () => import('../components/common/Home.vue'),
- meta: { title: '自述文件' },
- children: [
- {
- path: '/homeIndex',
- component: () => import('../views/homeIndex.vue'),
- meta: { title: '系统首页' },
- },
- // 菜单管理
- {
- path: '/menu',
- component: () => import('../views/menu/index.vue'),
- meta: { title: '菜单管理' },
- },
- // 管理员
- {
- path: '/gly',
- component: () => import('../views/gly/index.vue'),
- meta: { title: '管理员管理' },
- },
- {
- path: '/gly/detail',
- component: () => import('../views/gly/detail.vue'),
- meta: { title: '管理员信息管理' },
- },
- // 机构管理员
- {
- path: '/jg',
- component: () => import('../views/jg/index.vue'),
- meta: { title: '机构管理员' },
- },
- {
- path: '/jg/detail',
- component: () => import('../views/jg/detail.vue'),
- meta: { title: '机构管理员信息管理' },
- },
- // 业务管理员
- {
- path: '/yw',
- component: () => import('../views/yw/index.vue'),
- meta: { title: '业务管理员' },
- },
- {
- path: '/yw/detail',
- component: () => import('../views/yw/detail.vue'),
- meta: { title: '业务管理员信息管理' },
- },
- // 权限管理
- {
- path: '/qx',
- component: () => import('../views/qx/index.vue'),
- meta: { title: '权限管理' },
- },
- // 用户管理
- {
- path: '/user',
- component: () => import('../views/user/index.vue'),
- meta: { title: '用户管理' },
- },
- {
- path: '/user/detail',
- component: () => import('../views/user/detail.vue'),
- meta: { title: '用户信息管理' },
- },
- // 审核管理
- {
- path: '/product',
- component: () => import('../views/product/index.vue'),
- meta: { title: '审核管理' },
- },
- // 展会管理
- {
- path: '/live',
- component: () => import('../views/live/index.vue'),
- meta: { title: '展会管理' },
- },
- {
- path: '/live/detail',
- component: () => import('../views/live/detail.vue'),
- meta: { title: '展会信息管理' },
- },
- ],
- },
- {
- path: '/login',
- component: () => import('../views/Login.vue'),
- meta: { title: '登录' },
- },
- {
- path: '*',
- redirect: '/404',
- },
- ],
- });
|