Browse Source

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

pull/1234/head
ssongliu 1 year ago committed by GitHub
parent
commit
6919ce7b5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      frontend/src/views/home/status/index.vue

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

Loading…
Cancel
Save