From fc0a33e512f85a477a6e6b0afe67000d15cec4c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Tue, 4 Jul 2023 15:50:18 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E7=9B=91=E6=8E=A7=E5=9B=BE=E8=A1=A8=20=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E8=B7=9F=E9=9A=8F=E5=B1=8F=E5=B9=95=E5=A4=A7=E5=B0=8F=E8=87=AA?= =?UTF-8?q?=E9=80=82=E5=BA=94=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui-vue3/src/views/monitor/cache/index.vue | 5 ++++- ruoyi-ui/src/views/monitor/cache/index.vue | 4 +--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ruoyi-ui-vue3/src/views/monitor/cache/index.vue b/ruoyi-ui-vue3/src/views/monitor/cache/index.vue index b3fadf7e4..ccca20d6d 100644 --- a/ruoyi-ui-vue3/src/views/monitor/cache/index.vue +++ b/ruoyi-ui-vue3/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() + }); }) } diff --git a/ruoyi-ui/src/views/monitor/cache/index.vue b/ruoyi-ui/src/views/monitor/cache/index.vue index 4cbba98d4..75832ab99 100644 --- a/ruoyi-ui/src/views/monitor/cache/index.vue +++ b/ruoyi-ui/src/views/monitor/cache/index.vue @@ -110,9 +110,6 @@ export default { } ] }); - window.addEventListener("resize",()=>{ - this.commandstats.resize() - }); this.usedmemory = echarts.init(this.$refs.usedmemory, "macarons"); this.usedmemory.setOption({ tooltip: { @@ -137,6 +134,7 @@ export default { ] }); window.addEventListener("resize",()=>{ + this.commandstats.resize() this.usedmemory.resize() }); });