Use the element ui vue project, use the Enter event plus .native, worded as follows:
<el-input @keyup.enter.native="handleEnter($event)" v-model="scope.row.name" :value="scope.row.name"></el-input>
// 回车失去焦点
handleEnter(event){
event.target.blur();
// 回车失去焦点单独写
// 更新操作应该放到失去焦点的事件中,后面调用接口时重新写blur方法
this.$message.success('修改成功');
},