From bdbef0fbde20317d19bfc6d3473dabb10fb3fb3b Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Sat, 19 Apr 2025 15:41:21 +0800
Subject: [PATCH] feat: 修改任务事件概况的饼状图颜色

---
 src/components/CurrentTaskDetails/TaskDetailsHead.vue |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/components/CurrentTaskDetails/TaskDetailsHead.vue b/src/components/CurrentTaskDetails/TaskDetailsHead.vue
index d417c4b..472373b 100644
--- a/src/components/CurrentTaskDetails/TaskDetailsHead.vue
+++ b/src/components/CurrentTaskDetails/TaskDetailsHead.vue
@@ -44,8 +44,8 @@
 	{ index: 4, title: '经度', value: 0, unit: '°' },
 	{ index: 5, title: '纬度', value: 0, unit: '°' },
 	{ index: 6, title: '风速', value: 0, unit: 'M/s' },
-	{ index: 7, title: '4G信号', value: 0, unit: '' },
-	{ index: 8, title: 'SDR信号', value: 0, unit: '' },
+	{ index: 7, title: '4G信号', value: '-', unit: '' },
+	{ index: 8, title: 'SDR信号', value: '-', unit: '' },
 	{ index: 9, title: 'GPS搜星数', value: 0, unit: '' },
 	{ index: 10, title: 'RTK搜星数', value: 0, unit: '' },
 	{ index: 11, title: '距离机场', value: 0, unit: 'M' },
@@ -62,7 +62,7 @@
 }
 
 function refreshLive() {
-	EventBus.emit('CurrentTaskDetails-getDroneLiveUrl')
+	EventBus.emit('CurrentTaskDetails-getDroneLiveUrl',true)
 }
 
 function getFlightStatisticsFun() {
@@ -92,7 +92,6 @@
 	const dock_osd_host = wsInfo?.value?.dock_osd?.data?.host || {}
 	const { longitude, latitude, height, horizontal_speed, vertical_speed, wind_speed, battery } = device_osd_host
 	const { longitude: dockLon, latitude: dockLat, wireless_link } = dock_osd_host
-
 	let dist = infoList.value[11].value
 	if (longitude && latitude && dockLon && dockLat) {
 		dist = _.round(getLnglatDist(longitude, latitude, dockLon, dockLat), 0)

--
Gitblit v1.9.3