This commit is contained in:
2023-10-17 22:35:28 +08:00
parent 1bafe71d1e
commit 69983054dc
22 changed files with 319 additions and 39 deletions

View File

@@ -6,21 +6,24 @@ import MyHello from '../components/MyHello.vue'
Vue.use(Router);
//配置路由
const router = new Router({
const router = new Router({
routes: [
{
path:"/hello",
component:MyHello
path: "/hello",
component: MyHello
},
//路由懒加载(按需加载)
{
path: '/map',
name: 'map',
component: () => import('../pages/map.vue')
},{
component: () => import('../pages/map.vue') //路由懒加载(按需加载)
}, {
path: '/call_room',
name: 'call_room',
component: () => import('../pages/call_room.vue')
}, {
path: '/hd_map',
name: 'hd_map',
component: () => import('../pages/hd_map.vue')
}
]
});