From 719e8b5d73a54a3cc3711a7bf2c6ddb6706bf0ef Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 07:56:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20MiniChart=20=E4=BB=85=E6=96=B0=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E5=88=9B=E5=BB=BA=E4=B8=80=E6=AC=A1=20(=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E9=87=8D=E5=A4=8D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 30c851a..1fc15be 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -213,7 +213,8 @@ '
'; } grid.appendChild(card); - if (isRow && typeof MiniChart !== 'undefined') { + _cardCache[id] = card; + if (isRow && typeof MiniChart !== 'undefined' && !_chartInstances[id]) { try { _chartInstances[id] = [ new MiniChart(id+'-cpu', '#7aa2f7'), @@ -222,7 +223,6 @@ ]; } catch(e) {} } - _cardCache[id] = card; } // 更新通用信息