fix setValues

This commit is contained in:
RickCole21 2020-08-07 18:00:58 +08:00
parent ee56c44fd9
commit f7c2e14c6d
1 changed files with 2 additions and 3 deletions

View File

@ -83,9 +83,8 @@ export const FormStore = ServiceStore.named('FormStore')
function setValues(values: object, tag?: object, replace?: boolean) {
self.updateData(values, tag, replace);
self.items.forEach(
item => getVariable(values, item.name) !== undefined && item.reset()
);
// 如果数据域中有数据变化就都reset一下去掉之前残留的验证消息
self.items.forEach(item => item.reset());
// 同步 options
syncOptions();