index.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import Vue from 'vue';
  2. import Router from 'vue-router';
  3. Vue.use(Router);
  4. export default new Router({
  5. mode: 'history',
  6. base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER,
  7. routes: [
  8. {
  9. path: '/',
  10. name: 'home',
  11. component: () => import('../views/home/index.vue'),
  12. },
  13. // 科技政务
  14. {
  15. path: '/government/index',
  16. component: () => import('../views/government/index.vue'),
  17. },
  18. // 科技政务-栏目列表
  19. {
  20. path: '/government/columnDetail',
  21. component: () => import('../views/government/columnDetail.vue'),
  22. },
  23. // 科技政务-信息列表
  24. {
  25. path: '/government/messageInfoDetail',
  26. component: () => import('../views/government/messageInfoDetail.vue'),
  27. },
  28. // 科技政策
  29. {
  30. path: '/policy/index',
  31. component: () => import('../views/policy/index.vue'),
  32. },
  33. // 科技政策-栏目列表
  34. {
  35. path: '/policy/columnDetail',
  36. component: () => import('../views/policy/columnDetail.vue'),
  37. },
  38. // 科技政策-信息列表
  39. {
  40. path: '/policy/messageInfoDetail',
  41. component: () => import('../views/policy/messageInfoDetail.vue'),
  42. },
  43. // 站点信息
  44. {
  45. path: '/site/index',
  46. meta: { title: '网站设置' },
  47. component: () => import('../views/site/index.vue'),
  48. },
  49. // 友情链接管理
  50. {
  51. path: '/links/index',
  52. meta: { title: '友情链接' },
  53. component: () => import('../views/links/index.vue'),
  54. },
  55. {
  56. path: '/links/detail',
  57. meta: { title: '友情链接' },
  58. component: () => import('../views/links/detail.vue'),
  59. },
  60. ],
  61. });