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",
    component: () => import("../views/elevator/index.vue"),
  },
  {
    path: "/maintenance",
    name: "maintenance",
    component: () => import("../views/maintenance/index.vue"),
  },
  {
    path: "/require",
    name: "require",
    component: () => import("../views/require/index.vue"),
  },
  {
    path: "/rescue",
    name: "rescue",
    component: () => import("../views/rescue/index.vue"),
  },
  
  {
    path: "/elevatorDetail",
    name: "elevatorDetail",
    component: () => import("../views/elevatorDetail/index.vue"),
  },
];
const router = new VueRouter({
  mode: "history",
  routes,
});

export default router;
