在按钮上绑定keyup事件,加上.native覆盖原有封装的keyup事件
html
<el-form-item label="密码">
<el-input v-model="form.pass" type="password"
@keyup.native.enter="onSubmit" ></el-input>
</el-form-item>