diff --git a/src/views/monitor/cache/index.vue b/src/views/monitor/cache/index.vue index aa7ba72..fa3b7bd 100644 --- a/src/views/monitor/cache/index.vue +++ b/src/views/monitor/cache/index.vue @@ -98,7 +98,6 @@ function getList() { } ] }); - const usedmemoryInstance = echarts.init(usedmemory.value, "macarons"); usedmemoryInstance.setOption({ tooltip: { @@ -122,6 +121,10 @@ function getList() { } ] }) + window.addEventListener("resize", () => { + commandstatsIntance.resize(); + usedmemoryInstance.resize(); + }); }) }