From d1aefdc139db5521c64080c78dc232e345645274 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Mon, 24 Mar 2025 17:40:05 +0800 Subject: [PATCH] fix: When asker is empty, do not pass the current parameter --- 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 617b56cf36e..e8fc142476d 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 8e36294f27a..3d318cf267c 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')" >