fix :判断逻辑修改

This commit is contained in:
guruize162 2024-11-19 13:40:49 +08:00
parent 9a3feb762b
commit 7192f81479

View File

@ -536,7 +536,7 @@ export class ComboControlPlugin extends BasePlugin {
const items = [...(form.data.items || [])]; const items = [...(form.data.items || [])];
// 修改 items 中的 unique 属性 // 修改 items 中的 unique 属性
const updatedItems = items.map(item => { const updatedItems = items.map(item => {
if (value.includes(item.name)) { if (value === item.name) {
return {...item, unique: true}; return {...item, unique: true};
} else { } else {
const newItem = {...item}; const newItem = {...item};