From 6ec98f2e6482c2d543c854fefe801268e106e8ca Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 29 Nov 2023 12:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=93=E5=AD=98=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E5=9B=BE=E8=A1=A8=E6=94=AF=E6=8C=81=E8=B7=9F=E9=9A=8F?= =?UTF-8?q?=E5=B1=8F=E5=B9=95=E5=A4=A7=E5=B0=8F=E8=87=AA=E9=80=82=E5=BA=94?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/cache/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); + }); }) }