From 2dc06191cab0d288495e073d000acdaba03ee0df Mon Sep 17 00:00:00 2001 From: CaptainB Date: Mon, 23 Sep 2024 10:25:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BC=A0=E5=85=A5=E7=B1=BB=E5=9E=8B=E7=9A=84=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E5=BF=85=E5=A1=AB=E9=A1=B9=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=1046919 --user=刘瑞斌 【应用编排】接口传参类型的全局变量,设置了非必填后提问还是会提示需要填写 https://www.tapd.cn/57709429/s/1583325 --- ui/src/components/ai-chat/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 15c506c2d..6ba956f99 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -512,7 +512,7 @@ function checkInputParam() { if (!api_form_data.value[f.field]) { api_form_data.value[f.field] = route.query[f.field] } - if (!api_form_data.value[f.field]) { + if (f.required && !api_form_data.value[f.field]) { msg.push(f.field) } }