From 7fa38677f7c3ce7be713f3e5f6e6d6536bd52b3a Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 10 Dec 2024 16:20:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AF=AD=E9=9F=B3=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E5=8E=BB=E6=8E=89form=5Frander=E7=9B=B8=E5=85=B3=E6=96=87?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit fa3817574b2d7fa13559f28dcf683d92de7754c2) --- .../ai-chat/component/operation-button/ChatOperationButton.vue | 1 + .../ai-chat/component/operation-button/LogOperationButton.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue index f103e48e2..831d36454 100644 --- a/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue +++ b/ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue @@ -156,6 +156,7 @@ function removeFormRander(text: string) { return text .replace('你好,请先填写下面表单内容:', '') .replace(/[\s\S]*?<\/formrander>/, '') + .replace(/[\s\S]*?<\/form_rander>/, '') .replace('填写后请点击【提交】按钮进行提交。', '') .trim() } diff --git a/ui/src/components/ai-chat/component/operation-button/LogOperationButton.vue b/ui/src/components/ai-chat/component/operation-button/LogOperationButton.vue index 8057dae31..a1c6cc40d 100644 --- a/ui/src/components/ai-chat/component/operation-button/LogOperationButton.vue +++ b/ui/src/components/ai-chat/component/operation-button/LogOperationButton.vue @@ -135,6 +135,7 @@ function removeFormRander(text: string) { return text .replace('你好,请先填写下面表单内容:', '') .replace(/[\s\S]*?<\/formrander>/, '') + .replace(/[\s\S]*?<\/form_rander>/, '') .replace('填写后请点击【提交】按钮进行提交。', '') .trim() }