From b31d922fb2a41088a3d43b22aafc94208b94baf5 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 08:19:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BD=91=E6=A0=BC=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=20=E2=80=94=20=E6=A3=80=E6=B5=8Bmetric-bar?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E6=97=B6=E9=87=8D=E5=BB=BADOM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 0973786..e6be9dc 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -281,7 +281,8 @@ var oldMem = parseFloat(body.getAttribute('data-mem')||memVal); body.setAttribute('data-cpu', cpuVal); body.setAttribute('data-mem', memVal); - var isNew = !body.querySelector('.cpu-val'); + var hasMetricBar = body.querySelector('.metric-bar'); + var isNew = !body.querySelector('.cpu-val') || !hasMetricBar; if (isNew) { body.innerHTML = '
'+