From 526e05199f31b6cedf24d64a4b69a6ebc9d098a4 Mon Sep 17 00:00:00 2001 From: fengyarnom Date: Fri, 16 May 2025 14:52:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index 0370f15..1e51689 100644 --- a/static/index.html +++ b/static/index.html @@ -363,7 +363,7 @@ document.getElementById('latest-wind-direction').textContent = data.wind_direction_360; document.getElementById('latest-atm-pressure').textContent = data.atm_pressure.toFixed(1); document.getElementById('latest-solar-radiation').textContent = data.solar_radiation; - document.getElementById('latest-rainfall').textContent = data.rainfall; + document.getElementById('latest-rainfall').textContent = data.rainfall.toFixed(1); }) .catch(error => { console.error('获取最新传感器数据失败:', error);