【解决todo】对话中不能清楚 chat 消息

This commit is contained in:
cherishsince 2024-07-09 17:14:38 +08:00
parent 2204876076
commit b4b9015869

View File

@ -198,7 +198,11 @@ const handlerConversationDelete = async (delConversation: ChatConversationVO) =>
}
/** 清空选中的对话 */
const handleConversationClear = async () => {
// TODO @fan
//
if (conversationInProgress.value) {
message.alert('对话中,不允许切换!')
return false
}
activeConversationId.value = null
activeConversation.value = null
activeMessageList.value = []