Skip to content

Commit fb4e95b

Browse files
committed
fix: 语音播放去掉form_rander相关文本
1 parent 2d1a098 commit fb4e95b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ function removeFormRander(text: string) {
156156
return text
157157
.replace('你好,请先填写下面表单内容:', '')
158158
.replace(/<formrander>[\s\S]*?<\/formrander>/, '')
159+
.replace(/<form_rander>[\s\S]*?<\/form_rander>/, '')
159160
.replace('填写后请点击【提交】按钮进行提交。', '')
160161
.trim()
161162
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ function removeFormRander(text: string) {
135135
return text
136136
.replace('你好,请先填写下面表单内容:', '')
137137
.replace(/<formrander>[\s\S]*?<\/formrander>/, '')
138+
.replace(/<form_rander>[\s\S]*?<\/form_rander>/, '')
138139
.replace('填写后请点击【提交】按钮进行提交。', '')
139140
.trim()
140141
}

0 commit comments

Comments
 (0)