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

pull/1234/head
ssongliu 2 years ago committed by GitHub
parent e7a9c3814b
commit 6919ce7b5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save