From 9b1e5ffbee581eb96cfceb836c15452e7d26f64e Mon Sep 17 00:00:00 2001 From: air <30444667+sszdot@users.noreply.github.com> Date: Thu, 8 Jan 2026 15:26:30 +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=E3=80=90=E5=8E=9F=20=20=E5=9B=A0=E3=80=91?= =?UTF-8?q?=EF=BC=9A=E5=88=A4=E6=96=AD=E4=BA=86=E6=98=AF=E5=90=A6=20?= =?UTF-8?q?=E6=9C=89=E7=BB=8F=E7=BA=AC=E5=BA=A6=20=20=E6=89=8D=E5=BE=80?= =?UTF-8?q?=E6=95=B0=E7=BB=84=E9=87=8C=E9=9D=A2=E5=AD=98=E7=BB=8F=E7=BA=AC?= =?UTF-8?q?=E9=AB=98=20=E3=80=90=E8=BF=87=20=20=E7=A8=8B=E3=80=91=EF=BC=9A?= =?UTF-8?q?=20=E3=80=90=E5=BD=B1=20=20=E5=93=8D=E3=80=91=EF=BC=9A=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=B2=A1=E6=9C=89=E7=BB=8F=E7=BA=AC=E5=BA=A6=E5=BE=97?= =?UTF-8?q?=E6=97=B6=E5=80=99=20=E4=B9=9F=E6=B2=A1=E6=9C=89=E9=AB=98?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/layout/index.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/layout/index.vue b/src/views/layout/index.vue index 1408d7e..e5bd7c3 100644 --- a/src/views/layout/index.vue +++ b/src/views/layout/index.vue @@ -197,11 +197,12 @@ export default { // 如果是飞机位置信息 则不是直接刷新状态 而是累计 到数组 以便于画出飞机路径 const position = JSON.parse(jsonData.position) // 检查 lon, lat, 和 alt 是否不全为零或空值 - if (position.lon !== 0 && position.lat !== 0 && - position.lon !== null && position.lat !== null && - position.lon !== '' && position.lat !== '') { - plane.planeState.position.push([position.lon / 10e6, position.lat / 10e6, Number(position.alt)]) - } + // if (position.lon !== 0 && position.lat !== 0 && + // position.lon !== null && position.lat !== null && + // position.lon !== '' && position.lat !== '') { + // plane.planeState.position.push([position.lon / 10e6, position.lat / 10e6, Number(position.alt)]) + // } + plane.planeState.position.push([position.lon / 10e6, position.lat / 10e6, Number(position.alt)]) if (plane.planeState.position.length > 1000) { plane.planeState.position.shift() // 删除最早的经纬度 }