调整传值为conversationId
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user