Skip to content

Commit b4b9015

Browse files
committed
【解决todo】对话中不能清楚 chat 消息
1 parent 2204876 commit b4b9015

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/views/ai/chat/index/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,11 @@ const handlerConversationDelete = async (delConversation: ChatConversationVO) =>
198198
}
199199
/** 清空选中的对话 */
200200
const handleConversationClear = async () => {
201-
// TODO @fan:需要加一个 对话进行中,不允许切换
201+
// 对话进行中,不允许切换
202+
if (conversationInProgress.value) {
203+
message.alert('对话中,不允许切换!')
204+
return false
205+
}
202206
activeConversationId.value = null
203207
activeConversation.value = null
204208
activeMessageList.value = []

0 commit comments

Comments
 (0)