From 03cd6fc67855a98d0d66f41e349dbc21e9105b39 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Thu, 11 Jun 2026 15:07:38 +0800 Subject: [PATCH] feat: The `sendMessage` function in `html_rander` supports passing interface/user input parameters --- ui/src/components/ai-chat/index.vue | 4 ++++ ui/src/components/markdown/HtmlRander.vue | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index 1936cd53b79..7acbf51d936 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -719,6 +719,10 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para ...api_form_data.value, }, } + + if (other_params_data && other_params_data.form_data) { + obj.form_data = { ...obj.form_data, ...other_params_data.form_data } + } // 对话 getChatMessageAPI()(chartOpenId.value, obj) .then((response) => { diff --git a/ui/src/components/markdown/HtmlRander.vue b/ui/src/components/markdown/HtmlRander.vue index 9a4aaf2aa76..64abd4d40e5 100644 --- a/ui/src/components/markdown/HtmlRander.vue +++ b/ui/src/components/markdown/HtmlRander.vue @@ -81,8 +81,8 @@ ${sourceHtml}