This commit is contained in:
aixianling
2023-05-15 18:16:05 +08:00
parent 44ebe96774
commit 32949d8ef7

View File

@@ -52,6 +52,7 @@ export default {
role: "user" role: "user"
} }
this.chatHistory.push(myMsg) this.chatHistory.push(myMsg)
this.inputText = "" //置空已发送的消息
this.loading = true this.loading = true
const aiMsg = { const aiMsg = {
avatar: ai.avatar, avatar: ai.avatar,