From 8b71e031d3d4e2e503ced0c7f31d319918b6cb3d Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 25 Oct 2024 18:14:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=AB=98=E7=BA=A7?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E8=B0=83=E8=AF=95=E6=97=B6=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BC=A0=E5=85=A5=E7=9A=84=E5=8F=82=E6=95=B0=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=A1=AB=E5=85=85=E9=BB=98=E8=AE=A4=E5=80=BC=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1047927 --user=刘瑞斌 【应用编排】接口传参必填项默认值不显示 https://www.tapd.cn/57709429/s/1598598 --- ui/src/components/ai-chat/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 5dc700a1e..bf3eb8fe9 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -468,7 +468,7 @@ function handleInputFieldList() { field: v.variable, input_type: 'TextInput', label: v.variable, - default_value: default_value[v.variable], + default_value: v.default_value || default_value[v.variable], required: v.is_required } case 'select': @@ -476,7 +476,7 @@ function handleInputFieldList() { field: v.variable, input_type: 'SingleSelect', label: v.variable, - default_value: default_value[v.variable], + default_value: v.default_value || default_value[v.variable], required: v.is_required, option_list: v.optionList.map((o: any) => { return { key: o, value: o } @@ -487,7 +487,7 @@ function handleInputFieldList() { field: v.variable, input_type: 'DatePicker', label: v.variable, - default_value: default_value[v.variable], + default_value: v.default_value || default_value[v.variable], required: v.is_required, attrs: { format: 'YYYY-MM-DD HH:mm:ss',