Skip to content

Commit

Permalink
fix: 修复接口传入类型的参数校验必填项的问题
Browse files Browse the repository at this point in the history
--bug=1046919 --user=刘瑞斌 【应用编排】接口传参类型的全局变量,设置了非必填后提问还是会提示需要填写 https://www.tapd.cn/57709429/s/1583325
  • Loading branch information
liuruibin committed Sep 23, 2024
1 parent cc04336 commit 1325973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/ai-chat/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 1325973

Please sign in to comment.