From d76df6fa8f02864b5675225caa80f7c154bc9cfc Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Tue, 29 Oct 2024 11:20:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E7=BC=96=E6=8E=92=E8=87=AA=E5=AE=9A=E4=B9=89=E5=87=BD=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E6=95=B0=E6=8D=AE=E6=9C=AA=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/markdown/MdRenderer.vue | 1 - ui/src/workflow/nodes/function-node/index.vue | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/src/components/markdown/MdRenderer.vue b/ui/src/components/markdown/MdRenderer.vue index 84861afe35..9a9952f46c 100644 --- a/ui/src/components/markdown/MdRenderer.vue +++ b/ui/src/components/markdown/MdRenderer.vue @@ -96,7 +96,6 @@ const split_md_img_ = (source: string) => { return md_img_list[Math.floor(index / 2)] } }) - console.log(result) return result } const split_quick_question = (result: Array) => { diff --git a/ui/src/workflow/nodes/function-node/index.vue b/ui/src/workflow/nodes/function-node/index.vue index 5f3b8d9062..db080245f9 100644 --- a/ui/src/workflow/nodes/function-node/index.vue +++ b/ui/src/workflow/nodes/function-node/index.vue @@ -197,8 +197,8 @@ function deleteField(index: any) { function refreshFieldList(data: any) { const list = cloneDeep(props.nodeModel.properties.node_data.input_field_list) const obj = { - value: data.source === 'reference' ? [] : '', - ...data + ...data, + value: data.source === 'reference' ? [] : '' } if (currentIndex.value !== null) { list.splice(currentIndex.value, 1, obj)