From 6ec98f2e6482c2d543c854fefe801268e106e8ca Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期三, 29 十一月 2023 12:43:44 +0800 Subject: [PATCH] 优化缓存监控图表支持跟随屏幕大小自适应调整 --- src/views/monitor/cache/index.vue | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) 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 @@ } ] }); - const usedmemoryInstance = echarts.init(usedmemory.value, "macarons"); usedmemoryInstance.setOption({ tooltip: { @@ -122,6 +121,10 @@ } ] }) + window.addEventListener("resize", () => { + commandstatsIntance.resize(); + usedmemoryInstance.resize(); + }); }) } -- Gitblit v1.9.3