优化缓存监控图表支持跟随屏幕大小自适应调整
This commit is contained in:
parent
dfb8096387
commit
6ec98f2e64
5
src/views/monitor/cache/index.vue
vendored
5
src/views/monitor/cache/index.vue
vendored
@ -98,7 +98,6 @@ function getList() {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
const usedmemoryInstance = echarts.init(usedmemory.value, "macarons");
|
const usedmemoryInstance = echarts.init(usedmemory.value, "macarons");
|
||||||
usedmemoryInstance.setOption({
|
usedmemoryInstance.setOption({
|
||||||
tooltip: {
|
tooltip: {
|
||||||
@ -122,6 +121,10 @@ function getList() {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
window.addEventListener("resize", () => {
|
||||||
|
commandstatsIntance.resize();
|
||||||
|
usedmemoryInstance.resize();
|
||||||
|
});
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user