import { createRouter, createWebHashHistory } from "vue-router" const map = () => import("@/views/map/index.vue") const waterResource = () => import("@/views/waterResource/index.vue") const waterQuality = () => import("@/views/waterQuality/index.vue") const router = createRouter({ history: createWebHashHistory(), routes: [ { path: "/", redirect: "/map", }, { path: "/map", component: map, }, { path: "/waterResource", component: waterResource, }, { path: "/waterQuality", component: waterQuality, }, { path: "/:pathMatch(.*)", redirect: "/", }, ], }) export default router