From e09b0b2d529e926b9eff5ca1d7679a21c3224170 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Thu, 23 May 2024 11:24:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/content/airInfo/AirInfo.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/content/airInfo/AirInfo.vue b/src/components/content/airInfo/AirInfo.vue index ce8e945..6b6c697 100644 --- a/src/components/content/airInfo/AirInfo.vue +++ b/src/components/content/airInfo/AirInfo.vue @@ -101,17 +101,17 @@ const clickMonth = ref('') const clickDay = ref('') watch(() => props.windSpeed, (now) => { now.forEach(newItem => { - windSpeed.value =parseFloat(newItem.value) + windSpeed.value =newItem.value }) }) watch(() => props.list, (now) => { airList.value?.forEach(item => { now.forEach(newItem => { if (newItem.equipmentId === 11) {//风向传感器 - windDirection.value = parseFloat(newItem.value) + windDirection.value = newItem.value } if (item.equipmentId === newItem.equipmentId) { - item.value = parseFloat(newItem.value) + item.value = newItem.value } }) })