diff --git a/ruoyi-ui/src/views/monitor/cache/index.vue b/ruoyi-ui/src/views/monitor/cache/index.vue index e81da2e8f..4cbba98d4 100644 --- a/ruoyi-ui/src/views/monitor/cache/index.vue +++ b/ruoyi-ui/src/views/monitor/cache/index.vue @@ -110,6 +110,9 @@ export default { } ] }); + window.addEventListener("resize",()=>{ + this.commandstats.resize() + }); this.usedmemory = echarts.init(this.$refs.usedmemory, "macarons"); this.usedmemory.setOption({ tooltip: { @@ -133,6 +136,9 @@ export default { } ] }); + window.addEventListener("resize",()=>{ + this.usedmemory.resize() + }); }); }, // 打开加载层