修复缓存监控图表支持跟随屏幕大小自适应调整
This commit is contained in:
parent
2c3d2e4ea3
commit
350e62c6cb
6
ruoyi-ui/src/views/monitor/cache/index.vue
vendored
6
ruoyi-ui/src/views/monitor/cache/index.vue
vendored
@ -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()
|
||||
});
|
||||
});
|
||||
},
|
||||
// 打开加载层
|
||||
|
Loading…
x
Reference in New Issue
Block a user