From c1f6448ad60b3cf2d0c6715f747b2d55af6edb90 Mon Sep 17 00:00:00 2001 From: ZLY Date: Mon, 1 Sep 2025 16:00:28 +0800 Subject: [PATCH] =?UTF-8?q?docs:(flowEditor):=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/flowEditor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/flowEditor/index.tsx b/src/pages/flowEditor/index.tsx index d4418bb..334aa61 100644 --- a/src/pages/flowEditor/index.tsx +++ b/src/pages/flowEditor/index.tsx @@ -121,6 +121,7 @@ const FlowEditor: React.FC = () => { // 将未定义的节点动态追加进nodeTypes const nodeMap = Array.from(Object.values(nodeTypeMap).map(key => key)); + // 目前默认添加的都是系统组件/本地组件 if (!nodeMap.includes(nodeData.nodeType)) registerNodeType(nodeData.nodeType, LocalNode, nodeData.nodeName); setNodes((nds) => nds.concat(newNode)); @@ -160,7 +161,6 @@ const FlowEditor: React.FC = () => { // 节点双击处理 const onNodeDoubleClick = useCallback( (event: React.MouseEvent, node: Node) => { - console.log('双击'); setEditingNode(node); setIsEditModalOpen(true); },