From acaaef7dbdeeef2c03aa89a7f1b0c6d83a9815d9 Mon Sep 17 00:00:00 2001 From: sanmaopep Date: Thu, 6 Mar 2025 15:46:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20createWorkflowNodeByType=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=8A=82=E7=82=B9=E6=97=B6=EF=BC=8Cjson=E4=B8=8A?= =?UTF-8?q?=E7=9A=84=E5=8F=82=E6=95=B0=E4=BC=9A=E8=A2=AB=E4=B8=A2=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/canvas-engine/free-layout-core/src/workflow-document.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/canvas-engine/free-layout-core/src/workflow-document.ts b/packages/canvas-engine/free-layout-core/src/workflow-document.ts index 0401bdb9..a90f7c39 100644 --- a/packages/canvas-engine/free-layout-core/src/workflow-document.ts +++ b/packages/canvas-engine/free-layout-core/src/workflow-document.ts @@ -320,6 +320,7 @@ export class WorkflowDocument extends FlowDocument { } return this.createWorkflowNode( { + ...json, id, type, meta: { position, ...json?.meta }, // TODO title 和 meta 要从注册数据去拿