防止连续点击
if(this.isClick) {
this.isClick = false;
//定时器
setTimeout(function() {
this.isClick = true;
}, 1000);//一秒内不能重复点击
}
isClick: null,
handleSearch(e) {
//文字s搜索交接人
const { value } = e.detail;
clearTimeout(this.isClick);
this.isClick = setTimeout(() => {
console.log(value);
}, 1000);
},