Merge branch 'dev-3.7' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.8

This commit is contained in:
zhangyu
2023-06-21 16:46:10 +08:00
2 changed files with 6 additions and 3 deletions

View File

@@ -366,12 +366,12 @@ export default {
this.position.top = ePosition.layerY
this.$nextTick(() => {
if ((boxWidth / 2) > ePosition.layerX) {
this.position.left = ePosition.layerX + 20
this.position.left = ePosition.layerX + 15
} else {
this.position.left = ePosition.layerX - 20 - 400
this.position.left = ePosition.layerX - 15 - 400
}
if (boxHeight / 2 > ePosition.layerY) {
this.position.top = ePosition.layerY + 50
this.position.top = ePosition.layerY + 15
} else {
this.position.top = ePosition.layerY - 300
}