From 378ae2c4e94b1f8f5568160693675abfde45ebaf Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 15:06:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B8=85=E7=90=86=5Fhires=E6=AE=8B?= =?UTF-8?q?=E7=95=99=20+=20HiChart=E6=9B=BF=E6=8D=A2=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index cea2964..a3f9eb1 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -322,16 +322,10 @@ grid.appendChild(card); _cardCache[id] = card; if (isRow && !_chartInstances[id]) { - try { - _chartInstances[id] = { cpu: null, mem: null, net: null }; - if (typeof MiniChart !== 'undefined') { - _chartInstances[id].cpu = new MiniChart(id+'-cpu', '#7aa2f7'); _chartInstances[id].mem = new MiniChart(id+'-mem', '#9ece6a'); _hires(_chartInstances[id].mem); - } - if (typeof DualLineChart !== 'undefined') { - _chartInstances[id].net = new DualLineChart(id+'-net', '#bb9af7', '#c0a8f0'); - - } - } catch(e) {} + _chartInstances[id] = { cpu: null, mem: null, net: null }; + _chartInstances[id].cpu = new HiChart(id+'-cpu', '#7aa2f7'); + _chartInstances[id].mem = new HiChart(id+'-mem', '#9ece6a'); + _chartInstances[id].net = new HiChart(id+'-net', '#bb9af7', '#c0a8f0'); } }