123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import Vue from 'vue';
- import Router from 'vue-router';
- Vue.use(Router);
- export default new Router({
- mode: 'history',
- base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER,
- routes: [
- {
- path: '/',
- name: 'home',
- component: () => import('../views/home/index.vue'),
- },
- // 科技政务
- {
- path: '/government/index',
- component: () => import('../views/government/index.vue'),
- },
- // 科技政务-栏目列表
- {
- path: '/government/columnDetail',
- component: () => import('../views/government/columnDetail.vue'),
- },
- // 科技政务-信息列表
- {
- path: '/government/messageInfoDetail',
- component: () => import('../views/government/messageInfoDetail.vue'),
- },
- // 科技政策
- {
- path: '/policy/index',
- component: () => import('../views/policy/index.vue'),
- },
- // 科技政策-栏目列表
- {
- path: '/policy/columnDetail',
- component: () => import('../views/policy/columnDetail.vue'),
- },
- // 科技政策-信息列表
- {
- path: '/policy/messageInfoDetail',
- component: () => import('../views/policy/messageInfoDetail.vue'),
- },
- // 站点信息
- {
- path: '/site/index',
- meta: { title: '网站设置' },
- component: () => import('../views/site/index.vue'),
- },
- // 友情链接管理
- {
- path: '/links/index',
- meta: { title: '友情链接' },
- component: () => import('../views/links/index.vue'),
- },
- {
- path: '/links/detail',
- meta: { title: '友情链接' },
- component: () => import('../views/links/detail.vue'),
- },
- ],
- });
|