From 29f8797a93e43160d2c70a39e62b185e6de070e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= <523037378@qq.com> Date: Tue, 3 Mar 2020 14:12:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=90=8C=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=86=85=E5=88=87=E6=8D=A2=E6=90=9C=E7=B4=A2=E6=A1=86?= =?UTF-8?q?=E5=90=8E=E6=90=9C=E7=B4=A2=E9=80=89=E9=A1=B9=E4=B8=8D=E7=AB=8B?= =?UTF-8?q?=E5=8D=B3=E5=8F=98=E5=8C=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/searchInput.vue | 15 +++++++++++++-- nezha-fronted/src/components/page/config/dc.vue | 4 ++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/common/searchInput.vue b/nezha-fronted/src/components/common/searchInput.vue index 9ac4e17e9..39cde5097 100644 --- a/nezha-fronted/src/components/common/searchInput.vue +++ b/nezha-fronted/src/components/common/searchInput.vue @@ -182,6 +182,15 @@ } }, watch: { + searchMsg: { + deep: true, + immediate: true, + handler(n, o) { + this.$nextTick(() => { + this.clear_input(); + }) + } + }, select_list: { //监听下拉列表 handler(newData, oldData) { @@ -941,8 +950,10 @@ }, //阻止冒泡事件 stop_click(e) { - e.cancelBubble = true; - e.stopPropagation(); + if (e) { + e.cancelBubble = true; + e.stopPropagation(); + } }, //点击遮罩层 zhezhao_click() { diff --git a/nezha-fronted/src/components/page/config/dc.vue b/nezha-fronted/src/components/page/config/dc.vue index a6437deb1..99199f93a 100644 --- a/nezha-fronted/src/components/page/config/dc.vue +++ b/nezha-fronted/src/components/page/config/dc.vue @@ -57,7 +57,7 @@ @@ -151,7 +151,7 @@