Browse Source

功能修改20250117

zhiyuan-007 2 days ago
parent
commit
5d4b8bcdbb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/home/cpns/FlyController.vue

+ 1 - 1
src/views/home/cpns/FlyController.vue

@@ -175,7 +175,7 @@ export default {
     }
 
     watch(() => mapStore.currentUavInfo, (val) => {
-      option.series[0].data[0].value = mapStore.currentUavInfo.speed;
+      option.series[0].data[0].value = parseFloat(mapStore.currentUavInfo.speed.toFixed(2));
       singleLength.value = mapStore.currentUavInfo.lastFlightDistance;
       singleTime.value = mapStore.currentUavInfo.lastFlightTime;
       setOptions(document.getElementById('chart-ybp'), option)