searchProducent(event) {
if (event.keyCode == 13) { //如果按的是enter键 13是enter
event.preventDefault(); //禁止默认事件(默认是换行)
this.$refs.search.blur();
// event.path[0].blur();
// console.log(event.path[0]);
// console.log(event.target.value)
// this.$toast(`搜索${event.target.value}`)
this.pull(false)
}
} ,
网友评论