mirror of
https://gitee.com/ByteDance/flowgram.ai.git
synced 2025-07-07 17:43:29 +08:00
fix: createWorkflowNodeByType 新增节点时,json上的参数会被丢失
This commit is contained in:
parent
7340ca540a
commit
acaaef7dbd
@ -320,6 +320,7 @@ export class WorkflowDocument extends FlowDocument {
|
||||
}
|
||||
return this.createWorkflowNode(
|
||||
{
|
||||
...json,
|
||||
id,
|
||||
type,
|
||||
meta: { position, ...json?.meta }, // TODO title 和 meta 要从注册数据去拿
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user