!384 修复缓存监控图表跟随屏幕自适应调整

Merge pull request !384 from 抓蛙师/dev
This commit is contained in:
疯狂的狮子Li
2023-07-04 07:33:55 +00:00
committed by Gitee

View File

@@ -110,6 +110,9 @@ export default {
} }
] ]
}); });
window.addEventListener("resize",()=>{
this.commandstats.resize()
});
this.usedmemory = echarts.init(this.$refs.usedmemory, "macarons"); this.usedmemory = echarts.init(this.$refs.usedmemory, "macarons");
this.usedmemory.setOption({ this.usedmemory.setOption({
tooltip: { tooltip: {
@@ -133,6 +136,9 @@ export default {
} }
] ]
}); });
window.addEventListener("resize",()=>{
this.usedmemory.resize()
});
}); });
}, },
// 打开加载层 // 打开加载层