From ad452afa528eb9e762b8fb65ae2d2f2edbe5084d Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 24 Mar 2025 17:41:18 +0800 Subject: [PATCH] fix: When asker is empty, do not pass the current parameter (#2667) --- ui/src/components/ai-chat/component/user-form/index.vue | 5 ++++- .../application/component/ReasoningParamSettingDialog.vue | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/src/components/ai-chat/component/user-form/index.vue b/ui/src/components/ai-chat/component/user-form/index.vue index 617b56cf3..e8fc14247 100644 --- a/ui/src/components/ai-chat/component/user-form/index.vue +++ b/ui/src/components/ai-chat/component/user-form/index.vue @@ -323,7 +323,10 @@ const checkInputParam = () => { } } if (!api_form_data_context.value['asker']) { - api_form_data_context.value['asker'] = getRouteQueryValue('asker') + const asker = getRouteQueryValue('asker') + if (asker) { + api_form_data_context.value['asker'] = getRouteQueryValue('asker') + } } if (msg.length > 0) { diff --git a/ui/src/views/application/component/ReasoningParamSettingDialog.vue b/ui/src/views/application/component/ReasoningParamSettingDialog.vue index 8e36294f2..3d318cf26 100644 --- a/ui/src/views/application/component/ReasoningParamSettingDialog.vue +++ b/ui/src/views/application/component/ReasoningParamSettingDialog.vue @@ -19,6 +19,7 @@ :label="$t('views.application.applicationForm.form.reasoningContent.start')" >