From 8465d69ec66aed733b42ecefc699d1ae9b380b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=A6=8D?= <1455167345@qq.com> Date: Mon, 1 Sep 2025 14:11:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E6=97=B6=E5=B7=A1=E6=A3=80=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workmanagement/flightoperation/index.vue | 8 ++++--- .../flightoperation/src/FlightControl.vue | 4 ++-- .../demo/workmanagement/inspection/index.vue | 12 ++++------ .../inspection/src/StatisticsComponent.vue | 22 ++++++++++--------- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/views/demo/workmanagement/flightoperation/index.vue b/src/views/demo/workmanagement/flightoperation/index.vue index 7d69836..c5a2b36 100644 --- a/src/views/demo/workmanagement/flightoperation/index.vue +++ b/src/views/demo/workmanagement/flightoperation/index.vue @@ -109,7 +109,7 @@ import { buildGUID } from '@/utils/uuid'; import { vDrag } from '@/utils/drag'; import { EventBus } from '@/utils/eventBus'; - import { drcUpTopic, setTopic } from '@/utils/debugging/remote'; + import { drcUpTopic, setTopic, eventsTopicSubscribe } from '@/utils/debugging/remote'; import { airPortStore } from '@/store/modules/airport'; import { AlertOutlined, RadarChartOutlined } from '@ant-design/icons-vue'; import { endHandFlyTask } from '@/api/workmanagement/droneDock'; @@ -156,6 +156,7 @@ socket.disconnect(); } airPortStoreVal.setTaskId(null); + stopPatrolVisible.value = false; } }); } else { @@ -175,8 +176,8 @@ patrolVisible.value = false; }; onMounted(() => { - // socket = io('http://192.168.10.131:9025'); - socket = io('http://123.132.248.154:9309'); + socket = io('http://192.168.10.131:9025'); + // socket = io('http://123.132.248.154:9309'); destroyConnection(); createConnection(connectCallback); setTimeout(() => { @@ -314,6 +315,7 @@ const topicUAVUrl = 'thing/product/' + UAVinfo.sn + '/osd'; // 订阅飞行器消息 clientSubscribe(topicUAVUrl, { qos: 1 }); + eventsTopicSubscribe(); };