From cf70f71b65fc47c0239329624c4d9eeda3d78336 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sat, 13 Jun 2026 21:45:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Sentinel=20=E5=8A=A0=E8=BD=BD=20chart.js?= =?UTF-8?q?=20+=20MiniChart=20=E6=9C=AA=E5=B0=B1=E7=BB=AA=E5=9B=9E?= =?UTF-8?q?=E9=80=80=E7=BD=91=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 2a3c32a..1a91e79 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -1,3 +1,4 @@ +

🛡️ Sentinel 集群监控

@@ -246,7 +247,13 @@ if (isRow) { var charts = _chartInstances[id]; - if (charts && charts[0]) { + if (!charts) { + // MiniChart 未加载, 回退到网格模式 + _layoutMode = 'grid'; + toggleLayout(); + return; + } + if (charts[0]) { charts[0].update(cpuVal); charts[1].update(memVal); charts[2].update(net.rx_bytes_sec||0);