You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.0 KiB

3 years ago
3 years ago
  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. Vue.use(VueRouter)
  4. const routes = [
  5. {
  6. path: '/NewBookRecommend',
  7. name: 'NewBookRecommend',
  8. component: () => import('../views/newBookRecommend.vue'),
  9. meta: {
  10. title: '新书推荐'
  11. }
  12. },
  13. {
  14. path: '/DigitalResource',
  15. name: 'DigitalResource',
  16. component: () => import('../views/digitalResource.vue'),
  17. meta: {
  18. title: '数字资源'
  19. }
  20. },
  21. {
  22. path: '/LibraryIntroduction',
  23. name: 'LibraryIntroduction',
  24. component: () => import('../views/libraryIntroduction.vue'),
  25. meta: {
  26. title: '图书馆简介'
  27. }
  28. },
  29. {
  30. path: '/ActivityFeed',
  31. name: 'ActivityFeed',
  32. component: () => import('../views/activityFeed.vue'),
  33. meta: {
  34. title: '活动咨询'
  35. }
  36. },
  37. {
  38. path: '/ActivityDetail',
  39. name: 'ActivityDetail',
  40. component: () => import('../views/activityDetail.vue'),
  41. meta: {
  42. title: '活动详情'
  43. }
  44. }
  45. ]
  46. const router = new VueRouter({
  47. mode: 'history',
  48. routes
  49. })
  50. export default router