From 62abcd12bab17672257bdc6360f75ccfad4e8f3e Mon Sep 17 00:00:00 2001 From: tk Date: Thu, 8 Aug 2024 18:57:11 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=20=20=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Afix=20=E9=A3=9E=E6=9C=BA=E6=93=8D=E4=BD=9C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=20=20=E6=AD=A3=E5=9C=A8=E6=89=A7=E8=A1=8C=E7=9A=84?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E9=A3=9E=E6=9C=BA=20=E6=AF=94=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E5=88=97=E8=A1=A8=E5=85=88=E8=BD=BD=20=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=9C=B0=E5=9B=BE=E4=B8=8A=E8=88=AA=E7=BA=BF=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E6=AD=A3=E7=A1=AE=E6=B8=B2=E6=9F=93=20=E3=80=90?= =?UTF-8?q?=E5=8E=9F=20=20=E5=9B=A0=E3=80=91=EF=BC=9A=20=E3=80=90=E8=BF=87?= =?UTF-8?q?=20=20=E7=A8=8B=E3=80=91=EF=BC=9A=E6=B8=B2=E6=9F=93=E8=88=AA?= =?UTF-8?q?=E7=BA=BF=E6=97=B6=20=E6=A3=80=E6=9F=A5=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=9C=89=E6=B2=A1=E6=9C=89=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E5=AE=8C=E6=88=90=20=E6=B2=A1=E6=9C=89=E5=B0=B1=E5=BB=B6?= =?UTF-8?q?=E8=BF=9F=E4=B8=80=E7=A7=92=E4=B9=8B=E5=90=8E=20=E5=86=8D?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E6=B8=B2=E6=9F=93=20=E3=80=90=E5=BD=B1=20=20?= =?UTF-8?q?=E5=93=8D=E3=80=91=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ControllerTabs.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/ControllerTabs.vue b/src/components/ControllerTabs.vue index 565a95d..40d8eab 100644 --- a/src/components/ControllerTabs.vue +++ b/src/components/ControllerTabs.vue @@ -838,7 +838,13 @@ export default { // 设置提示标签 this.setExecuteOrderTag(this.executeOrder) // 绘制地图 - this.makeRouteForMap() + if (this.siteList.length > 0) { + this.makeRouteForMap() + } else { + setTimeout(() => { + this.makeRouteForMap() + }, 1000) + } } else { // 没有执行订单 if (this.plane) { this.publishFun('{"resetState":1}')// 发送设置飞机状态主题 状态设为闲置 @@ -849,7 +855,13 @@ export default { executeOrder (val) { if (val) { /* 如果当前飞机正在执行任务 把航线绘制到地图上 */ - this.makeRouteForMap() + if (this.siteList.length > 0) { + this.makeRouteForMap() + } else { + setTimeout(() => { + this.makeRouteForMap() + }, 1000) + } /* 检查添加提示标签 */ this.setExecuteOrderTag(val) } else {