【类 型】:fix 飞机状态的高度显示bug

【原  因】:当前高度应该是数组最后一个元素 而不是第1个元素
【过  程】:
【影  响】:

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
tk 2024-10-11 12:26:44 +08:00
parent a396b749ee
commit 35d983454a

View File

@ -150,7 +150,8 @@ export default {
// //
positionAlt () { positionAlt () {
if (this.plane && this.plane.planeState && this.plane.planeState.position.length > 0) { 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 return null
}, },