@@ -79,6 +79,11 @@
airModel: null,
name: null,
});
+ const locationVal: any = ref({});
+ const flyToThere = (e) => {
+ locationVal.value.lat = e._lat;
+ locationVal.value.lng = e._lng;
+ };
onMounted(() => {
destroyConnection();
createConnection();
@@ -93,7 +98,7 @@
// 机场直播
const airportLiveVisible = ref(true);
// 无人机直播
- const livePreviewVisible = ref(true);
+ const livePreviewVisible = ref(false);
// 远程调试
const remoteVisible = ref(false);
// 负载控制
@@ -127,7 +132,10 @@
};
const changeTakeOffForm = () => {
takeOffFormVisible.value = false;
- uavLive.value = true;
+ setTimeout(() => {
+ uavLive.value = true;
+ livePreviewVisible.value = true;
+ }, 2000);
};
const changeFlyToForm = () => {
flyToFormVisible.value = false;
diff --git a/src/views/demo/workmanagement/flightoperation/src/FlyToForm.vue b/src/views/demo/workmanagement/flightoperation/src/FlyToForm.vue
index c8c0194..dc1212a 100644
--- a/src/views/demo/workmanagement/flightoperation/src/FlyToForm.vue
+++ b/src/views/demo/workmanagement/flightoperation/src/FlyToForm.vue
@@ -47,14 +47,6 @@
>