diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index 243fc9f43..87bf5e0da 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -357,7 +357,6 @@ const onLoadBaseInfo = async (isInit: boolean, range: string) => { statuRef.value.acceptParams(currentInfo.value, baseInfo.value); appRef.value.acceptParams(); if (isInit) { - // window.addEventListener('resize', changeChartSize); timer = setInterval(async () => { onLoadCurrentInfo(); }, 3000); diff --git a/frontend/src/views/home/status/index.vue b/frontend/src/views/home/status/index.vue index 91a059dfe..aaeba4a97 100644 --- a/frontend/src/views/home/status/index.vue +++ b/frontend/src/views/home/status/index.vue @@ -207,6 +207,7 @@ const acceptParams = (current: Dashboard.CurrentInfo, base: Dashboard.BaseInfo): freshChart('cpu', 'CPU', formatNumber(currentInfo.value.cpuUsedPercent)); freshChart('memory', i18n.global.t('monitor.memory'), formatNumber(currentInfo.value.MemoryUsedPercent)); freshChart('load', i18n.global.t('home.load'), formatNumber(currentInfo.value.loadUsagePercent)); + currentInfo.value.diskData = currentInfo.value.diskData || []; nextTick(() => { for (let i = 0; i < currentInfo.value.diskData.length; i++) { let itemPath = currentInfo.value.diskData[i].path;