소스 검색

修复了会话被保留的bug

kagg886 2 달 전
부모
커밋
2a7e780cae
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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)
 		// 可以在这里添加错误提示