项目首页地图加载不出问题修改

main
zhufu 2 months ago
parent d97a9e3217
commit 15af787406

@ -1,7 +1,7 @@
<template> <template>
<div class="home-page"> <div class="home-page">
<div style="width: 100%;height: calc(100vh - 80px);"> <div style="width: 100%;height: calc(100vh - 80px);">
<Map :airRoute="airRoute" @mapOnLoad="mapOnLoad" :homeAirport="airPort" @clickAirPort="clickAirPort" @changeAirportLive="changeAirportLive" @changeUAVLive="changeUAVLive"/> <Map :airLineForm="airLineForm" @mapOnLoad="mapOnLoad" :homeAirport="airPort" @clickAirPort="clickAirPort" @changeAirportLive="changeAirportLive" @changeUAVLive="changeUAVLive"/>
</div> </div>
<div ref="leftComponentRef" style="position: absolute;top: 0px;left: 0px;"> <div ref="leftComponentRef" style="position: absolute;top: 0px;left: 0px;">
<!-- 项目列表 --> <!-- 项目列表 -->
@ -42,12 +42,7 @@ import { useRouter } from 'vue-router';
import { AirportLive, LivePreview } from '@/views/demo/workmanagement/flightoperation/index' import { AirportLive, LivePreview } from '@/views/demo/workmanagement/flightoperation/index'
const router = useRouter(); const router = useRouter();
const airRoute = ref({ const airLineForm = ref({});
airLineType: null,
airType: null,
airModel: null,
name: null,
});
const airPort = ref({ const airPort = ref({
latitude: null, latitude: null,
longitude: null, longitude: null,

Loading…
Cancel
Save