chore: array 场景也需要下发 idMap

This commit is contained in:
2betop 2023-11-13 21:09:57 +08:00
parent 99f41f30ed
commit dec3015927

View File

@ -79,7 +79,7 @@ export function JSONPipeIn(obj: any, generateId = false, idMap: any = {}): any {
}
if (Array.isArray(obj)) {
return obj.map((item, index) => JSONPipeIn(item, generateId));
return obj.map((item, index) => JSONPipeIn(item, generateId, idMap));
}
let toUpdate: any = {};