From dc1a8a1a44a8aa19e4f875df4e8dc59c8d49a323 Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Sun, 5 Apr 2026 17:15:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DLDNET-GA=E7=9A=84SEO=E9=87=87?= =?UTF-8?q?=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 14 +++++++++----- public/js/app.js | 6 +++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/public/index.html b/public/index.html index 1006168..f9c572b 100644 --- a/public/index.html +++ b/public/index.html @@ -4,8 +4,8 @@ - - 数据可视化展示大屏 + + LDNET-GA 默认白天模式 -
- - +
+ +
diff --git a/public/js/app.js b/public/js/app.js index 402620a..4d358da 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -263,7 +263,7 @@ dom.siteTitleInput.value = window.SITE_SETTINGS.title || ''; dom.logoUrlInput.value = window.SITE_SETTINGS.logo_url || ''; dom.defaultThemeInput.value = window.SITE_SETTINGS.default_theme || 'dark'; - dom.show95BandwidthInput.checked = !!window.SITE_SETTINGS.show_95_bandwidth; + dom.show95BandwidthInput.value = window.SITE_SETTINGS.show_95_bandwidth ? "1" : "0"; } loadSiteSettings(); @@ -1070,7 +1070,7 @@ if (settings.logo_url) dom.logoUrlInput.value = settings.logo_url; if (settings.default_theme) dom.defaultThemeInput.value = settings.default_theme; if (settings.show_95_bandwidth !== undefined) { - dom.show95BandwidthInput.checked = !!settings.show_95_bandwidth; + dom.show95BandwidthInput.value = settings.show_95_bandwidth ? "1" : "0"; if (networkChart) { networkChart.showP95 = !!settings.show_95_bandwidth; if (dom.legendP95) { @@ -1155,7 +1155,7 @@ title: dom.siteTitleInput.value.trim(), logo_url: dom.logoUrlInput.value.trim(), default_theme: dom.defaultThemeInput.value, - show_95_bandwidth: dom.show95BandwidthInput.checked ? 1 : 0 + show_95_bandwidth: dom.show95BandwidthInput.value === "1" ? 1 : 0 }; dom.btnSaveSiteSettings.disabled = true;