From cd0ea07c2fb40aef591a4dad87088d865018ed20 Mon Sep 17 00:00:00 2001 From: Aqr-K <95741669+Aqr-K@users.noreply.github.com> Date: Wed, 5 Mar 2025 04:28:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E5=90=8C=E7=B1=BB=E5=9E=8B=E7=9A=84=E8=8A=82=E7=82=B9=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=95=B0=E6=8D=AE=E6=9C=AA=E9=9A=94=E7=A6=BB=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/@core/utils/workflow.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/@core/utils/workflow.ts b/src/@core/utils/workflow.ts index 4f9acd27..e6ccdf0d 100644 --- a/src/@core/utils/workflow.ts +++ b/src/@core/utils/workflow.ts @@ -1,5 +1,6 @@ import { useVueFlow } from '@vue-flow/core' import { ref, watch } from 'vue' +import { cloneDeep } from 'lodash-es' /** * @returns {string} - A unique id. @@ -90,7 +91,7 @@ export default function useDragAndDrop() { name: draggedData.value?.name, description: draggedData.value?.description, position, - data: draggedData.value?.data, + data: draggedData.value?.data ? cloneDeep(draggedData.value.data) : {}, } /**