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);