diff --git a/nezha-fronted/src/components/common/alert/alertLabel.vue b/nezha-fronted/src/components/common/alert/alertLabel.vue index 7f90b0bda..086cdb773 100644 --- a/nezha-fronted/src/components/common/alert/alertLabel.vue +++ b/nezha-fronted/src/components/common/alert/alertLabel.vue @@ -451,7 +451,7 @@ >  {{ - alertLabelData && alertLabelData.asset.name + alertLabelData && alertLabelData.asset ? alertLabelData.asset.name : "--" }} @@ -763,6 +763,13 @@ export default { computed: { calcPosition () { return function (position) { + if (this.$refs.alertLabels) { + this.heightList = this.$refs.alertLabels.getBoundingClientRect().height + this.boxWidth = this.$refs.alertLabels.getBoundingClientRect().width + } else { + this.heightList = 0 + this.boxWidth = 0 + } const clientHeight = document.body.clientHeight < document.documentElement.clientHeight ? document.body.clientHeight diff --git a/nezha-fronted/src/components/common/mixin/alertLabelMixin.js b/nezha-fronted/src/components/common/mixin/alertLabelMixin.js index ea03f866f..73a46d1ef 100644 --- a/nezha-fronted/src/components/common/mixin/alertLabelMixin.js +++ b/nezha-fronted/src/components/common/mixin/alertLabelMixin.js @@ -16,10 +16,10 @@ export default { methods: { // label 鼠标划入 labelHover (item, type, loading, isUseType = true, e) { - clearTimeout(this.timer) if (this.labelToolTipDis(type)) { return } + clearTimeout(this.timer) if (isUseType) { if (e) { const dom = e.currentTarget diff --git a/nezha-fronted/src/components/page/alert/alertMessage.vue b/nezha-fronted/src/components/page/alert/alertMessage.vue index 93f056989..2d095eca2 100644 --- a/nezha-fronted/src/components/page/alert/alertMessage.vue +++ b/nezha-fronted/src/components/page/alert/alertMessage.vue @@ -53,7 +53,7 @@ :type="'link'" > - +
{{$t('overall.batchAck')}}