修复combo 中 unique 用法, 删除重复内容依然不能提交成功的问题

This commit is contained in:
2betop 2020-04-16 10:37:54 +08:00
parent 48da3e99f4
commit bdb1e7bf22
1 changed files with 2 additions and 1 deletions

View File

@ -365,7 +365,8 @@ export const FormStore = ServiceStore.named('FormStore')
for (let i = 0, len = items.length; i < len; i++) {
let item = items[i] as IFormItemStore;
if (!item.validated || forceValidate) {
// 验证过,或者是 unique 的表单项,或者强制验证
if (!item.validated || item.unique || forceValidate) {
yield item.validate();
}
}