From aa53a21685bb9a521337c00d4b1332119d7d5ca5 Mon Sep 17 00:00:00 2001 From: yarnom Date: Mon, 29 Sep 2025 12:07:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=BD=A9=E4=BA=91?= =?UTF-8?q?=E6=B0=94=E8=B1=A1=E6=95=B0=E6=8D=AE=E4=B8=8B=E8=BD=BD=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/imdroid_radar.html | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/templates/imdroid_radar.html b/templates/imdroid_radar.html index a2ee57f..99d898f 100644 --- a/templates/imdroid_radar.html +++ b/templates/imdroid_radar.html @@ -111,21 +111,13 @@ if (!res.ok) throw new Error('实时数据不存在'); const j = await res.json(); setRealtimeBox(j); - const miss = document.getElementById('rt_missing'); - if (miss) miss.classList.add('hidden'); } async function loadRealtimeAt(alias, dtStr) { const res = await fetch(`/api/radar/weather_at?alias=${encodeURIComponent(alias)}&dt=${encodeURIComponent(dtStr)}`); - if (!res.ok) { - const miss = document.getElementById('rt_missing'); - if (miss) miss.classList.remove('hidden'); - return false; - } + if (!res.ok) { return false; } const j = await res.json(); setRealtimeBox(j); - const miss = document.getElementById('rt_missing'); - if (miss) miss.classList.add('hidden'); return true; } @@ -686,7 +678,7 @@
下行短波: W/m²
气压: Pa
- +