From c8a3c20b41b9e2f1a5c33b4aab896dc8b91e8534 Mon Sep 17 00:00:00 2001 From: caixiaofeng <1941338475@qq.com> Date: Wed, 27 Sep 2023 10:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9id=E7=94=9F=E6=88=90=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 5 +++++ src/views/flowDesign/hooks/useNode.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 65cd05f..e9fed3d 100644 --- a/index.html +++ b/index.html @@ -14,5 +14,10 @@
+ diff --git a/src/views/flowDesign/hooks/useNode.ts b/src/views/flowDesign/hooks/useNode.ts index f3514df..f76a661 100644 --- a/src/views/flowDesign/hooks/useNode.ts +++ b/src/views/flowDesign/hooks/useNode.ts @@ -10,7 +10,7 @@ const useNode = (node: FlowNode) => { * 生成节点id */ const generateId = (): string => { - return `field-${Math.random().toString(36).substr(5)}` + return `node-${Math.random().toString(36).substr(5)}` } /** * 添加条件