Ver Fonte

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

RuoYi há 1 ano atrás
pai
commit
6ec98f2e64
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      src/views/monitor/cache/index.vue

+ 4 - 1
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();
+    });
   })
 }