elementui form resetFields()方法的使用
<el-form :span="18" :model="dataForm" :rules="dataRule" ref="dataFormRef" @keyup.enter.native="dataFormSubmit()" label-width="80px"> //必须放到$nextTick() dom渲染完之后执行resetFields,否则为undefined this.$nextTick(() => { this.$refs.dataFormRef.resetFields() })