fix 修复 缓存监控图表 支持跟随屏幕大小自适应调整

This commit is contained in:
疯狂的狮子Li 2023-07-04 15:50:36 +08:00
parent cc69786fd1
commit d930b15104

View File

@ -157,7 +157,6 @@ const getList = async () => {
}
]
});
const usedmemoryInstance = echarts.init(usedmemory.value, "macarons");
usedmemoryInstance.setOption({
tooltip: {
@ -181,6 +180,10 @@ const getList = async () => {
}
]
})
window.addEventListener("resize",()=>{
commandstatsIntance.resize()
usedmemoryInstance.resize()
});
}
onMounted(() => {