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.

46 lines
868 B

  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. Vue.use(VueRouter)
  4. const routes = [
  5. {
  6. path: '/',
  7. name: 'index',
  8. component: () => import('../views/index.vue'),
  9. meta: {
  10. title: '自主查询机'
  11. }
  12. },
  13. {
  14. path: '/NewBookRecommend',
  15. name: 'NewBookRecommend',
  16. component: () => import('../views/newBookRecommend.vue'),
  17. meta: {
  18. title: '新书推荐'
  19. }
  20. },
  21. {
  22. path: '/DigitalResource',
  23. name: 'DigitalResource',
  24. component: () => import('../views/digitalResource.vue'),
  25. meta: {
  26. title: '数字资源'
  27. }
  28. },
  29. {
  30. path: '/LibraryIntroduction',
  31. name: 'LibraryIntroduction',
  32. component: () => import('../views/libraryIntroduction.vue'),
  33. meta: {
  34. title: '图书管简介'
  35. }
  36. }
  37. ]
  38. const router = new VueRouter({
  39. mode: 'history',
  40. routes
  41. })
  42. export default router