forked from p96170835/amis
修复combo 中 unique 用法, 删除重复内容依然不能提交成功的问题
This commit is contained in:
parent
48da3e99f4
commit
bdb1e7bf22
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue