Browse Source

!384 修复缓存监控图表跟随屏幕自适应调整
Merge pull request !384 from 抓蛙师/dev

疯狂的狮子Li 2 years ago
parent
commit
e093b7b2ec
1 changed files with 6 additions and 0 deletions
  1. 6 0
      ruoyi-ui/src/views/monitor/cache/index.vue

+ 6 - 0
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()
+        });
       });
     },
     // 打开加载层