mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 01:46:42 +08:00
feat(portal): 初始化新对话时重置对话ID- 在开始新对话时将 conversationId 设置为空字符串
- 确保每次新建对话都有独立的标识符 -修复可能因对话ID重复导致的消息发送错误
This commit is contained in:
@@ -329,6 +329,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
handleNewConversation() {
|
handleNewConversation() {
|
||||||
|
this.conversationId = ''
|
||||||
this.$emit('new-conversation')
|
this.$emit('new-conversation')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user