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); } // 更新通用信息