import { createRouter, createWebHashHistory } from 'vue-router';
// import Map from '@/components/map/index.vue';  // 你的 Map 组件
import Map from '@/page/index/index.vue'

const routes = [
    // {
    //     path: '/:id',
    //     name: 'home',
    //     component: Map,
    // },
    {
        path: '/',
        name: 'map',
        component: Map
    },
];

const router = createRouter({
    history: createWebHashHistory('/YNMap/'),
    routes,
});

export default router;
