<el-form @submit.native.prevent :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm"
style="height:126px;">
<el-form-item label="名称" prop="name">
<el-input v-model="ruleForm.name" @keyup.enter.native="submitForm('ruleForm')" placeholder="请输入名称"></el-input>
</el-form-item>
<div class="d-footer">
<el-button @click="createPlanDialog = false" style="padding: 8px 16px;">取消</el-button>
<el-button type="primary" @click="submitForm('ruleForm')" style="margin-right:24px;">确定</el-button>
</div>
</el-form>
解决办法 :
在 <el-form>
标签上添加 @submit.native.prevent 就可以了