@@ -94,7 +94,7 @@ function EditBtn({
const collectIdArr: number[] = []
const snapsArr: any[] = []
- snaps.forEach(v => {
+ snaps.forEach((v, i) => {
// 从征集中选的藏品--并且没有在点编辑(点提交)存到藏品数据库。这时候就属于征集id
const flag = v.pageType === 'clue' && !v.clueId
@@ -107,7 +107,7 @@ function EditBtn({
}
// 只有一个藏品的第二个模块
- if (isTow) {
+ if (isTow && i === 0) {
snapSon = {
...snapSon,
...info2
@@ -93,7 +93,7 @@ function EditTop({ rowArr, pageTxt, APIobj, fileUpInfo, moreDom }: Props) {
arrTemp.push(obj)
- if (moreDom && moreDom.domList && moreDom.domList.length && snapsTemp.length === 1) {
+ if (moreDom && moreDom.domList && moreDom.domList.length && i === 0) {
let obj2: any = {}
moreDom.domList.forEach((item: any) => {