From 29238b0d755697e303305cb1b307d73ddfd64321 Mon Sep 17 00:00:00 2001 From: wxs <211789910@qq.com> Date: Fri, 30 Jan 2026 17:17:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E6=9D=9F=E4=BB=BB=E5=8A=A1=E5=B9=B6?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E5=9C=B0=E9=9D=A2=E8=88=AA=E7=BA=BF=E5=92=8C?= =?UTF-8?q?=E7=9B=AE=E6=A0=87=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/home/components/twin-situation/index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js index 48e2624..229d737 100644 --- a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js +++ b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js @@ -1112,10 +1112,12 @@ export default { }) taskListResource = data this.taskList.data = list - this.taskList.data[0].check = true - if (this.menusChose === '1') { - this.addUavToScene(data[0]) - this.addTaskPlanArea(data[0].pointList, data[0].id, data[0].name) + if (this.taskList.data.length) { + this.taskList.data[0].check = true + if (this.menusChose === '1') { + this.addUavToScene(data[0]) + this.addTaskPlanArea(data[0].pointList, data[0].id, data[0].name) + } } } else { this.$message.error(res.data.message) @@ -1556,6 +1558,7 @@ export default { info.status = 2 this.getTaskList() this.$message.success('任务已结束!') + this.removeTaskTarget(info.id) } else { this.$message.error(res.data.message) }