fix 修复 缓存监控图表 支持跟随屏幕大小自适应调整
This commit is contained in:
parent
cc69786fd1
commit
d930b15104
5
src/views/monitor/cache/index.vue
vendored
5
src/views/monitor/cache/index.vue
vendored
@ -157,7 +157,6 @@ const getList = async () => {
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
const usedmemoryInstance = echarts.init(usedmemory.value, "macarons");
|
||||
usedmemoryInstance.setOption({
|
||||
tooltip: {
|
||||
@ -181,6 +180,10 @@ const getList = async () => {
|
||||
}
|
||||
]
|
||||
})
|
||||
window.addEventListener("resize",()=>{
|
||||
commandstatsIntance.resize()
|
||||
usedmemoryInstance.resize()
|
||||
});
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user