@web-map-service/map2d-app
Version:
基于openlayer的2D地图应用
29 lines (25 loc) • 573 B
text/typescript
import { createMemoryHistory, createRouter } from 'vue-router'
const routes = [
{
path: '/map',
component: () => import('../pages/map/index.vue'),
// component: () => import('../pages/layout.vue'),
// redirect: '/map',
// children: [
// {
// path: '/map',
// name: 'map',
// component: () => import('../pages/map.vue'),
// }
// ]
},
{
path: '/',
redirect: '/map'
}
]
const router = createRouter({
history: createMemoryHistory(),
routes,
})
export default router