fix:修复Form 表单项设置validateOnChange,初始化 initApi后,validate被触发 (#8387)

Co-authored-by: 张先林 <zxlfirst@mail.com>
This commit is contained in:
Howell Chan 2023-10-17 12:54:29 +08:00 committed by GitHub
parent aae65411c4
commit 6f599d5d93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@ export const FormStore = ServiceStore.named('FormStore')
}
}
item.reset();
item.validateOnChange && item.validate(self.data);
self.inited && item.validateOnChange && item.validate(self.data);
});
// 同步 options