fix: 概览页磁盘大小自适应 (#1232)

This commit is contained in:
ssongliu 2023-06-02 14:19:19 +08:00 committed by GitHub
parent e7a9c3814b
commit 6919ce7b5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(() => {