From 547b2bdbafa3a012c12f4e8ce8254bf5c41be196 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 19 Nov 2024 15:56:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=80=E5=90=AF=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=BC=80=E5=85=B3=E6=97=B6=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1049087 --user=刘瑞斌 【应用编排】开启文件上传后,全局变量列表没有自动生成文件变量 https://www.tapd.cn/57709429/s/1612303 --- ui/src/workflow/nodes/base-node/index.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ui/src/workflow/nodes/base-node/index.vue b/ui/src/workflow/nodes/base-node/index.vue index 93ded67c4b..253395ce40 100644 --- a/ui/src/workflow/nodes/base-node/index.vue +++ b/ui/src/workflow/nodes/base-node/index.vue @@ -70,7 +70,7 @@ - + @@ -382,6 +382,22 @@ const refreshTTSForm = (data: any) => { form_data.value.tts_model_params_setting = data } + +const switchFileUpload = () => { + const default_upload_setting = { + maxFiles: 3, + fileLimit: 50, + document: true, + image: false, + audio: false, + video: false + } + + if (form_data.value.file_upload_enable) { + form_data.value.file_upload_setting = form_data.value.file_upload_setting || default_upload_setting + props.nodeModel.graphModel.eventCenter.emit('refreshFileUploadConfig') + } +} const openFileUploadSettingDialog = () => { FileUploadSettingDialogRef.value?.open(form_data.value.file_upload_setting) }