From 6919ce7b5cf3591ff7c74aa421beebb58127ae41 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 2 Jun 2023 14:19:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A6=82=E8=A7=88=E9=A1=B5=E7=A3=81?= =?UTF-8?q?=E7=9B=98=E5=A4=A7=E5=B0=8F=E8=87=AA=E9=80=82=E5=BA=94=20(#1232?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/home/status/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/home/status/index.vue b/frontend/src/views/home/status/index.vue index aaeba4a97..04ac354f5 100644 --- a/frontend/src/views/home/status/index.vue +++ b/frontend/src/views/home/status/index.vue @@ -351,7 +351,9 @@ function changeChartSize() { echarts.getInstanceByDom(document.getElementById('cpu') as HTMLElement)?.resize(); echarts.getInstanceByDom(document.getElementById('memory') as HTMLElement)?.resize(); echarts.getInstanceByDom(document.getElementById('load') as HTMLElement)?.resize(); - echarts.getInstanceByDom(document.getElementById('disk') as HTMLElement)?.resize(); + for (let i = 0; i < currentInfo.value.diskData.length; i++) { + echarts.getInstanceByDom(document.getElementById('disk' + i) as HTMLElement)?.resize(); + } } onMounted(() => {