index.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. import { createRouter, createWebHistory } from "vue-router";
  2. const routes = [
  3. {
  4. path: "/",
  5. name: "home",
  6. component: () => import("@/views/home.vue"),
  7. meta: {
  8. title: "首页",
  9. },
  10. },
  11. {
  12. path: "/info",
  13. name: "info",
  14. component: () => import("@/views/info.vue"),
  15. meta: {
  16. title: "场馆资讯",
  17. },
  18. },
  19. {
  20. path: "/exhibition",
  21. name: "exhibition",
  22. component: () => import("@/views/exhibition.vue"),
  23. meta: {
  24. title: "展厅导览",
  25. },
  26. },
  27. {
  28. path: "/collect",
  29. name: "collect",
  30. component: () => import("@/views/collect.vue"),
  31. meta: {
  32. title: "馆藏精品",
  33. },
  34. },
  35. {
  36. path: "/survey",
  37. name: "survey",
  38. component: () => import("@/views/survey.vue"),
  39. meta: {
  40. title: "问卷调查",
  41. },
  42. },
  43. {
  44. path: "/feedback",
  45. name: "feedback",
  46. component: () => import("@/views/feedback.vue"),
  47. meta: {
  48. title: "留言反馈",
  49. },
  50. },
  51. {
  52. path: "/info-detail/:id",
  53. name: "infoDetail",
  54. component: () => import("@/views/info-detail.vue"),
  55. meta: {
  56. title: "",
  57. },
  58. },
  59. {
  60. path: "/guide-detail/:id",
  61. name: "guideDetail",
  62. component: () => import("@/views/guide-detail.vue"),
  63. meta: {
  64. title: "",
  65. },
  66. },
  67. {
  68. path: "/collect-detail/:id",
  69. name: "collectDetail",
  70. component: () => import("@/views/collect-detail.vue"),
  71. meta: {
  72. title: "",
  73. },
  74. },
  75. ];
  76. const router = createRouter({
  77. history: createWebHistory(),
  78. routes,
  79. });
  80. export default router;