Explorar el Código

修复了会话被保留的bug

kagg886 hace 2 meses
padre
commit
2a7e780cae
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)
 		// 可以在这里添加错误提示