fix(Form): should reset validation before submit (#7103)

This commit is contained in:
neverland 2020-09-05 06:30:00 +08:00 committed by GitHub
parent d0e6bd3c16
commit f6e3aaebec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,6 +255,7 @@ export default createComponent({
resolve();
}
this.resetValidation();
this.runRules(rules).then(() => {
if (this.validateFailed) {
resolve({