This commit is contained in:
parent
04816a4b00
commit
60eb21ca24
|
|
@ -215,11 +215,9 @@ export default {
|
||||||
...item,
|
...item,
|
||||||
bmFileInfos: item.bmFileInfos || []
|
bmFileInfos: item.bmFileInfos || []
|
||||||
}))
|
}))
|
||||||
// this.detailList.push(...itemsWithFileInfo)
|
|
||||||
// this.detailList = [...itemsWithFileInfo]
|
|
||||||
// 去重后添加
|
// 去重后添加
|
||||||
const existingTypeIds = new Set(this.detailList.map(item => item.id))
|
const existingTypeIds = new Set(this.detailList.map(item => item.keyId))
|
||||||
const newItems = itemsWithFileInfo.filter(item => !existingTypeIds.has(item.id))
|
const newItems = itemsWithFileInfo.filter(item => !existingTypeIds.has(item.keyId))
|
||||||
this.detailList.push(...newItems)
|
this.detailList.push(...newItems)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue