解决 el-form 回车触发刷新页面
When there is only one single-line text input field in a form, the user agent should accept Enter in that field as a request to submit the form.
当一个 form 元素中只有一个输入框时,在该输入框中按下回车应提交该表单。
解决办法是在 <el-form>
上添加 @submit.native.prevent
属性
<el-form @submit.native.prevent></el-form>