form-item不设定prop,不用执行resetField

1.不设定prop的时候,不用执行resetField,因为没有意义。
2.下面的path取索引也会引发异常。
pull/22985/head
黄瑞 2024-11-07 16:57:14 +08:00 committed by GitHub
parent c345bb453b
commit 0882c79c24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -228,6 +228,9 @@
this.validateDisabled = false;
},
resetField() {
if (!this.prop) {
return;
}
this.validateState = '';
this.validateMessage = '';