调整传值为conversationId

This commit is contained in:
aixianling
2024-07-16 16:27:35 +08:00
parent 5cc073cb87
commit 740c6497f1

View File

@@ -75,9 +75,9 @@ export default {
},
handleSend() {
if (!this.prompt.trim()) return this.$message.error("无法发送空白信息")
const concatenateStr = (content, i = 0) => {
this.history.at(-1).content += content.slice(i, i + 1)
if (++i < content.length) setTimeout(() => concatenateStr(content, i), 50)
const concatenateStr = (content, i = 0, target = this.history.at(-1)) => {
target.content += content.slice(i, i + 1)
if (++i < content.length) setTimeout(() => concatenateStr(content, i, target), 50)
}
this.$debounce(() => {
const {currentConversation: conversationId, app, prompt: content} = this.$data