Browse Source

修复了会话被保留的bug

kagg886 2 tháng trước cách đây
mục cha
commit
2a7e780cae
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/views/assistant/index.vue

+ 1 - 0
src/views/assistant/index.vue

@@ -459,6 +459,7 @@ const { loading: creatingConversation, doLoading: createConversationAndSetItActi
 
 		await nextTick()
 		activeConversationId.value = id
+		messages.value = []
 	} catch (error) {
 		console.error('创建对话失败:', error)
 		// 可以在这里添加错误提示