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 @@