NEZ-2886 fix:Agents新建时,首次选择Data center下拉框出现闪动

This commit is contained in:
zhangyu
2023-06-21 13:56:44 +08:00
parent ecbf64943f
commit 85b3c020e1
4 changed files with 7 additions and 8 deletions

View File

@@ -346,7 +346,6 @@ export default {
if (!positionShow) {
return
}
console.log(pen)
this.chartParams = {
...pen.data.tooltip,
unit: this.params.unit,
@@ -366,7 +365,7 @@ export default {
} else {
this.position.left = ePosition.layerX - 20 - 400
}
if (boxHeight > (ePosition.layerY + 300)) {
if (boxHeight / 2 > ePosition.layerY) {
this.position.top = ePosition.layerY + 50
} else {
this.position.top = ePosition.layerY - 300