This commit is contained in:
2026-02-27 11:49:08 +08:00
parent 10d58fb819
commit e2e1bcf322

View File

@@ -33,7 +33,7 @@ export class NodeManager {
const position = options.position ||
!lastNode ? { x: positionX, y: positionY } :
{ x: lastNode.position.x + lastNode.dimensions.width + 50 + positionX, y: lastNode.position.y + positionY }
const data = options.data || {}
const data = { ...(options?.data || {}) }
data['component'] = options.component
const options_ = {
id,
@@ -49,6 +49,7 @@ export class NodeManager {
component: resultImage,
data: {
type: NODE_DATATYPE.RESULT_IMAGE,
...(options?.data || {}),
},
...(options ? options : {}),
}
@@ -61,6 +62,7 @@ export class NodeManager {
positionY: 50,
data: {
type: NODE_DATATYPE.CARDS_SELECT,
...(options?.data || {}),
},
...(options ? options : {}),
}