Skip to content

Commit daf27a7

Browse files
committed
fix: 处理回复中的html标签和内容
1 parent 2a64f63 commit daf27a7

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,7 @@ function markdownToPlainText(md: string) {
154154
155155
function removeFormRander(text: string) {
156156
return text
157-
.replace('你好,请先填写下面表单内容:', '')
158-
.replace('请先填写以下表单并点击提交按钮', '')
159157
.replace(/<form_rander>[\s\S]*?<\/form_rander>/g, '')
160-
.replace('填写后请点击【提交】按钮进行提交。', '')
161158
.trim()
162159
}
163160

ui/src/components/ai-chat/component/operation-button/LogOperationButton.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,7 @@ function markdownToPlainText(md: string) {
133133
134134
function removeFormRander(text: string) {
135135
return text
136-
.replace('你好,请先填写下面表单内容:', '')
137-
.replace('请先填写以下表单并点击提交按钮', '')
138136
.replace(/<form_rander>[\s\S]*?<\/form_rander>/g, '')
139-
.replace('填写后请点击【提交】按钮进行提交。', '')
140137
.trim()
141138
}
142139

0 commit comments

Comments
 (0)