删除默认监控数据

This commit is contained in:
Arno 2019-08-22 09:16:49 +08:00
parent 556a10bae7
commit f88a700601

View File

@ -129,6 +129,11 @@
xAxisData.splice(0, 1);
xAxisData.push(topData.time);
}
if (cpuItem.data[0] === 0) {
cpuItem.data.splice(0, 1);
diskItem.data.splice(0, 1);
memoryItem.data.splice(0, 1);
}
let newSeries = [cpuItem, memoryItem, diskItem];
loadEcharts(xAxisData, newSeries);
}