import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "index",
    component: () => import("../views/index.vue"),
  },
  {
    path: "/elevator",
    name: "elevator",
    meta: { showMainMap: false }, // 不需要显示 MainMap 的页面
    component: () => import("../views/elevator/index.vue"),
  },
  {
    path: "/maintenance",
    name: "maintenance",
    meta: { showMainMap: false }, // 不需要显示 MainMap 的页面
    component: () => import("../views/maintenance/index.vue"),
  },
  {
    path: "/require",
    name: "require",
    meta: { showMainMap: false }, // 不需要显示 MainMap 的页面
    component: () => import("../views/require/index.vue"),
  },
  {
    path: "/rescue",
    name: "rescue",
    meta: { showMainMap: false }, // 不需要显示 MainMap 的页面
    component: () => import("../views/rescue/index.vue"),
  },
  
  {
    path: "/elevatorDetail",
    name: "elevatorDetail",
    meta: { showMainMap: false }, // 不需要显示 MainMap 的页面
    component: () => import("../views/elevatorDetail/index.vue"),
  },
];
const router = new VueRouter({
  mode: "history",
  routes,
});

export default router;
