123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- import Vue from 'vue';
- import VueRouter from 'vue-router';
- Vue.use(VueRouter);
- const routes = [
- {
- path: '/',
- name: '',
- component: () => import('../views/index.vue'),
- },
- // 登录
- {
- path: '/login',
- meta: { title: '登录', subSite: true },
- component: () => import('../views/login.vue'),
- },
- // 注册
- {
- path: '/register',
- meta: { title: '注册', subSite: true },
- component: () => import('../views/register.vue'),
- },
- // 新闻动态
- {
- path: '/news/index',
- meta: { title: '新闻动态', subSite: true },
- component: () => import('../views/news/index.vue'),
- },
- // 新闻动态列表+详情
- {
- path: '/news/listDetail',
- meta: { title: '新闻详情', subSite: true },
- component: () => import('../views/news/listDetail.vue'),
- },
- // 计算服务
- {
- path: '/service/index',
- meta: { title: '计算服务', subSite: true },
- component: () => import('../views/service/index.vue'),
- },
- // 计算服务-详情
- {
- path: '/service/detail',
- meta: { title: '计算服务', subSite: true },
- component: () => import('../views/service/detail.vue'),
- },
- // 交流互动
- {
- path: '/communication/index',
- meta: { title: '交流互动', subSite: true },
- component: () => import('../views/communication/index.vue'),
- },
- //成果展示
- {
- path: '/achievement/index',
- name: '平台建设',
- component: () => import('../views/achievement/index.vue'),
- },
- // 党建学苑
- {
- path: '/partisan/index',
- name: '党建学苑',
- component: () => import('../views/partisan/index.vue'),
- },
- // 个人中心
- {
- path: '/pcenter/index',
- name: '个人中心',
- component: () => import('../views/pcenter/index.vue'),
- },
- ];
- const router = new VueRouter({
- mode: 'history',
- base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER,
- routes,
- });
- // const router = new VueRouter({
- // routes,
- // });
- export default router;
|