From b82cbedd22f3b048e92a6bcae23655667c899c78 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 11 Nov 2021 16:46:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E5=88=92=E5=85=A5=20=E6=B8=85?= =?UTF-8?q?=E9=99=A4=E5=AE=9A=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/alert/nzTooltip.vue | 1 + .../src/components/common/table/settings/endpointTable.vue | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/nezha-fronted/src/components/common/alert/nzTooltip.vue b/nezha-fronted/src/components/common/alert/nzTooltip.vue index 6c91ede71..2a417c3c4 100644 --- a/nezha-fronted/src/components/common/alert/nzTooltip.vue +++ b/nezha-fronted/src/components/common/alert/nzTooltip.vue @@ -70,6 +70,7 @@ export default { tooltipHover (show) { if (show) { clearTimeout(this.that.timeout) + this.that.timeout = null } else { this.that.loading = false } diff --git a/nezha-fronted/src/components/common/table/settings/endpointTable.vue b/nezha-fronted/src/components/common/table/settings/endpointTable.vue index 5172916d8..0c721f733 100644 --- a/nezha-fronted/src/components/common/table/settings/endpointTable.vue +++ b/nezha-fronted/src/components/common/table/settings/endpointTable.vue @@ -323,6 +323,10 @@ export default { this.$set(item[type], 'loading', loading) }, 200) } else { + if (item[type].timeout) { + clearTimeout(item[type].timeout) + item[type].timeout = null + } this.$set(item[type], 'loading', loading) } // this.$set(this.tableData,index,item);// 调用父组件