提交 7f1c343b 作者: 翁进城

fix: 数据面板避障显示

上级 1cd45acb
...@@ -25,16 +25,15 @@ export default { ...@@ -25,16 +25,15 @@ export default {
uavData: { uavData: {
type: Object, type: Object,
default: () => {}, default: () => {},
},
obstacle: {
type: Object,
default: () => {}
} }
}, },
data() { data() {
return {}; return {};
}, },
computed: { computed: {
obstacle() {
return this.uavData?.obstacle;
},
/** /**
* 触发方向列表 * 触发方向列表
*/ */
...@@ -53,7 +52,7 @@ export default { ...@@ -53,7 +52,7 @@ export default {
return { return {
angle: i * 10, //角度 angle: i * 10, //角度
distance: distance, //距离 distance: distance, //距离
spotPos: distance / this.$store.state.fckernel.obstacle.obsDistance spotPos: distance / this.obstacle.obsDistance
} }
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论