this.$set(this.rules, 'age', [
{ required: true, message: '请选择年龄', trigger: 'change' },
]);
this.$set(this.rules, 'name', []);
this.$set(this.rules, 'address', []);
const refForm = this.$refs.ruleForm;
if (refForm) {
refForm.clearValidate(['name', 'address']);
}