From 11b1af43a67fa5ea41753b1274f0f52893d187ec Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 14:47:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BB=B6=E8=BF=9F100ms=E9=87=8D?= =?UTF-8?q?=E8=AE=BE=E5=9B=BE=E8=A1=A8=E5=B0=BA=E5=AF=B8(=E7=A1=AE?= =?UTF-8?q?=E4=BF=9D=E7=88=B6=E5=AE=B9=E5=99=A8=E5=B7=B2=E5=B8=83=E5=B1=80?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/sentinel/dashboard.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 3ac05bb..0ea6927 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -283,6 +283,15 @@ } } catch(e) {} } + // 延迟确保父容器已布局 + setTimeout(function(){ + if (_chartInstances[id]) { + var chs = _chartInstances[id]; + if (chs.cpu) chs.cpu.resize(); + if (chs.mem) chs.mem.resize(); + if (chs.net) chs.net.applyResize(); + } + }, 100); } // 更新通用信息