mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-27 20:49:03 +08:00
fix: 概览页磁盘大小自适应 (#1232)
This commit is contained in:
parent
e7a9c3814b
commit
6919ce7b5c
@ -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…
Reference in New Issue
Block a user