import { createRouter, createWebHistory } from 'vue-router' import HomeView from '../views/HomeView.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ // { // path: '/', // name: 'home', // component: HomeView // }, { path: '/', name: 'CesiumMap', component: () => import('../views/cesium.vue') }, { path: '/mapview', name: 'mapview', component: () => import('../views/mapview.vue') }, { path: '/satellitecloudchart', name: 'satellitecloudchart', component: () => import('../views/satellitecloudchart.vue') }, //云图 { path: '/cloudLayer', name: 'cloudLayer', component: () => import('../views/cesiumComponents/cloudLayer.vue') }, //降雨图 { path: '/rainLayer', name: 'rainLayer', component: () => import('../views/cesiumComponents/rainLayer.vue') }, { path: '/about', name: 'about', // route level code-splitting // this generates a separate chunk (About.[hash].js) for this route // which is lazy-loaded when the route is visited. component: () => import('../views/AboutView.vue') }, { path: "/:catchAll(.*)", redirect: "/" } ] }) export default router