(vue)阻止表单输入后回车
@submit.native.prevent
<!-- 任务名称弹窗 -->
<el-dialog
:title="dialogFormTitle"
:visible.sync="dialogFormVisible"
width="30%"
>
<el-form
:model="formInline"
size="mini"
@submit.native.prevent
>
<el-form-item label="任务名称" label-width="80px">
<el-input v-model="formInline.taskName" autocomplete="off" />
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button round size="mini" @click="dialogFormVisible = false">取 消</el-button>
<el-button round size="mini" type="primary" @click="saveExecuteBtn">确 定</el-button>
</div>
</el-dialog>