From 88b6d8b9d8a5d58297de28402ce2d77cbb8afa91 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 13 Sep 2024 14:33:35 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/components/ai-chat/index.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 83e29bcbf..f52244606 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -574,13 +574,17 @@ const errorWrite = (chat: any, message?: string) => { function chatMessage(chat?: any, problem?: string, re_chat?: boolean) { // 浏览器query参数找到接口传参 + let msg = [] for (let f of apiInputFieldList.value) { if (f.required && !route.query[f.field]) { - MsgWarning(`请在接入的URL补全必填参数${f.field}`) - return + msg.push(f.field) } form_data.value[f.field] = route.query[f.field] } + if (msg.length > 0) { + MsgWarning(`请在URL中填写参数 ${msg.join('、')}的值`) + return + } loading.value = true if (!chat) { chat = reactive({