소스 검색

修复缓存监控图表支持跟随屏幕大小自适应调整

抓蛙师 2 년 전
부모
커밋
350e62c6cb
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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()
+        });
       });
     },
     // 打开加载层