12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- import { createRouter, createWebHistory } from "vue-router";
- const routes = [
- {
- path: "/",
- name: "home",
- component: () => import("@/views/home.vue"),
- meta: {
- title: "首页",
- },
- },
- {
- path: "/info",
- name: "info",
- component: () => import("@/views/info.vue"),
- meta: {
- title: "场馆资讯",
- },
- },
- {
- path: "/exhibition",
- name: "exhibition",
- component: () => import("@/views/exhibition.vue"),
- meta: {
- title: "展厅导览",
- },
- },
- {
- path: "/collect",
- name: "collect",
- component: () => import("@/views/collect.vue"),
- meta: {
- title: "馆藏精品",
- },
- },
- {
- path: "/survey",
- name: "survey",
- component: () => import("@/views/survey.vue"),
- meta: {
- title: "问卷调查",
- },
- },
- {
- path: "/feedback",
- name: "feedback",
- component: () => import("@/views/feedback.vue"),
- meta: {
- title: "留言反馈",
- },
- },
- {
- path: "/info-detail/:id",
- name: "infoDetail",
- component: () => import("@/views/info-detail.vue"),
- meta: {
- title: "",
- },
- },
- {
- path: "/guide-detail/:id",
- name: "guideDetail",
- component: () => import("@/views/guide-detail.vue"),
- meta: {
- title: "",
- },
- },
- {
- path: "/collect-detail/:id",
- name: "collectDetail",
- component: () => import("@/views/collect-detail.vue"),
- meta: {
- title: "",
- },
- },
- ];
- const router = createRouter({
- history: createWebHistory(),
- routes,
- });
- export default router;
|