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

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

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

export default router;
