关键点:
this.form = Object.assign({}, undefined); // 重置表单
单独使用这个无效
this.$nextTick(() => {
this.$refs['ruleForm'].clearValidate();
this.$refs['ruleForm'].resetFields();
});
原文链接: https://www.cnblogs.com/wl1202/p/12880750.html
关键点:
this.form = Object.assign({}, undefined); // 重置表单
单独使用这个无效
this.$nextTick(() => {
this.$refs['ruleForm'].clearValidate();
this.$refs['ruleForm'].resetFields();
});
原文链接: https://www.cnblogs.com/wl1202/p/12880750.html
本文来自博客园,作者:💞Travelerᘗ,转载请注明原文链接:https://www.cnblogs.com/LindaBlog/p/15793092.html