fix: 【问答页面】提问达到最大限制的时候 返回内容重复。 (#301)

This commit is contained in:
shaohuzhang1 2024-04-28 18:48:08 +08:00 committed by GitHub
parent e4bcebd579
commit e543acd2d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,7 @@ export class ChatRecordManage {
this.chat.answer_text =
this.chat.answer_text + this.chat.buffer.splice(0, this.chat.buffer.length - 20).join('')
} else if (this.is_close) {
this.chat.answer_text = this.chat.answer_text + this.chat.buffer.join('')
this.chat.answer_text = this.chat.answer_text + this.chat.buffer.splice(0).join('')
this.chat.write_ed = true
this.write_ed = true
if (this.loading) {