fix: 修复同页面内切换搜索框后搜索选项不立即变化的问题

This commit is contained in:
陈劲松
2020-03-03 14:12:21 +08:00
parent 0e0c340025
commit 29f8797a93
2 changed files with 15 additions and 4 deletions

View File

@@ -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() {