mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix :判断逻辑修改
This commit is contained in:
parent
9a3feb762b
commit
7192f81479
@ -536,7 +536,7 @@ export class ComboControlPlugin extends BasePlugin {
|
||||
const items = [...(form.data.items || [])];
|
||||
// 修改 items 中的 unique 属性
|
||||
const updatedItems = items.map(item => {
|
||||
if (value.includes(item.name)) {
|
||||
if (value === item.name) {
|
||||
return {...item, unique: true};
|
||||
} else {
|
||||
const newItem = {...item};
|
||||
|
Loading…
Reference in New Issue
Block a user