fix: combo 唯一验证触发后,当删除其中一个时,唯一验证的报错没有消失 (#7388)

* fix: combo 唯一验证触发后,当删除其中一个时,唯一验证的报错没有消失

* fix: combo 唯一验证触发后,当删除其中一个时,唯一验证的报错没有消失
This commit is contained in:
sqzhou 2023-07-06 20:19:53 +08:00 committed by GitHub
parent 1bc2a5fb13
commit 06ad5abe50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,9 +147,15 @@ export const ComboStore = iRendererStore
}); });
self.forms.forEach(form => self.forms.forEach(form =>
form.items.forEach( form.items.forEach(item => {
item => item.unique && item.syncOptions(undefined, form.data) if (item.unique) {
) item.syncOptions(undefined, form.data);
if (item.errors.length) {
item.validate(item.tmpValue);
}
}
})
); );
} }
} }