对于vue来说,监听输入框上绑定enter键,只需要 @keyup.enter=“方法名” 如果用了类似于element UI 的话,得在后面加.native @keyup.enter.native=“方法名”