From 35d983454a7a79bf1b1410c25c8ae5fb388e30bf Mon Sep 17 00:00:00 2001 From: tk Date: Fri, 11 Oct 2024 12:26:44 +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=E7=8A=B6=E6=80=81=E7=9A=84?= =?UTF-8?q?=E9=AB=98=E5=BA=A6=E6=98=BE=E7=A4=BAbug=20=E3=80=90=E5=8E=9F=20?= =?UTF-8?q?=20=E5=9B=A0=E3=80=91=EF=BC=9A=E5=BD=93=E5=89=8D=E9=AB=98?= =?UTF-8?q?=E5=BA=A6=E5=BA=94=E8=AF=A5=E6=98=AF=E6=95=B0=E7=BB=84=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E4=B8=AA=E5=85=83=E7=B4=A0=20=E8=80=8C?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E7=AC=AC1=E4=B8=AA=E5=85=83=E7=B4=A0=20?= =?UTF-8?q?=E3=80=90=E8=BF=87=20=20=E7=A8=8B=E3=80=91=EF=BC=9A=20=E3=80=90?= =?UTF-8?q?=E5=BD=B1=20=20=E5=93=8D=E3=80=91=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动 --- src/components/PlaneStatus.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/PlaneStatus.vue b/src/components/PlaneStatus.vue index 7388ed4..1f6424f 100644 --- a/src/components/PlaneStatus.vue +++ b/src/components/PlaneStatus.vue @@ -150,7 +150,8 @@ export default { // 飞机高度 positionAlt () { if (this.plane && this.plane.planeState && this.plane.planeState.position.length > 0) { - return this.plane.planeState.position[0][2] + const posLen = this.plane.planeState.position.length + return this.plane.planeState.position[posLen - 1][2] } return null },