参考:
https://blog.csdn.net/weixin_49813550/article/details/119320743
在el-input里面添加这一行代码
@keyup.enter.native="seachEnter"
写seachEnter事件
seachEnter(e) {
var keyCode = window.event ? e.keyCode : e.which;
if (keyCode == 13) {
this.getShopList(); //搜索按钮的回调
}
},