<el-form :model="form" :rules="rules" ref="ruleForm"></el-form>
1在弹框打开时用refs获取到ruleForm,如果是vue单页面应用,那就在nextTick回调函数中获取
2重置表单内容即可,
this.$refs['ruleForm'].resetFields();
<el-form :model="form" :rules="rules" ref="ruleForm"></el-form>
1在弹框打开时用refs获取到ruleForm,如果是vue单页面应用,那就在nextTick回调函数中获取
2重置表单内容即可,
this.$refs['ruleForm'].resetFields();