From 06a43981d38eb8e1fcc2c3797f49ee0eff667302 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 15:01:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=9E=E5=88=B00d79acc=20HiChart?= =?UTF-8?q?=E7=89=88=E6=9C=AC=20+=20=E6=B8=85=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 7ec3d10..cea2964 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -321,8 +321,7 @@ } grid.appendChild(card); _cardCache[id] = card; - if (isRow) { - if (_chartInstances[id]) { _chartInstances[id] = null; } + if (isRow && !_chartInstances[id]) { try { _chartInstances[id] = { cpu: null, mem: null, net: null }; if (typeof MiniChart !== 'undefined') { @@ -332,6 +331,7 @@ _chartInstances[id].net = new DualLineChart(id+'-net', '#bb9af7', '#c0a8f0'); } + } catch(e) {} } } @@ -374,6 +374,7 @@ if (charts.cpu) charts.cpu.update(cpuVal); if (charts.mem) charts.mem.update(memVal); if (charts.net) { charts.net.update(net.rx_bytes_sec||0, net.tx_bytes_sec||0); if (charts.net.maxVal < 102400) charts.net.maxVal = 102400; } + } catch(e) {} } // 更新额外指标 var loadEl = card.querySelector('.load-val');