From d1e96331e2c3da0eca4131180b54fed083cd8240 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 07:39:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20MiniChart=20canvas=20ID=20+=20=E4=BC=A0?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2=20(=E9=9D=9E=20DOM=20=E5=85=83?= =?UTF-8?q?=E7=B4=A0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index a8d43ff..6e23a65 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -188,9 +188,9 @@ '
'+ '
'+ '
'+ - '
'+ - '
'+ - '
'+ + '
'+ + '
'+ + '
'+ '
'+ '
'+ '
CPU
0%
'+ @@ -208,9 +208,9 @@ if (mcBody) { try { _chartInstances[id] = [ - new MiniChart(mcBody.querySelector('.chart-cpu'), '#7aa2f7'), - new MiniChart(mcBody.querySelector('.chart-mem'), '#9ece6a'), - new MiniChart(mcBody.querySelector('.chart-net'), '#e0af68'), + new MiniChart(id+'-cpu', '#7aa2f7'), + new MiniChart(id+'-mem', '#9ece6a'), + new MiniChart(id+'-net', '#e0af68'), ]; } catch(e) { /* MiniChart init failed, continue without charts */ } }