|
@@ -3,6 +3,7 @@
|
|
<!-- 左侧:会话列表 -->
|
|
<!-- 左侧:会话列表 -->
|
|
<Conversation :active-id="activeConversationId"
|
|
<Conversation :active-id="activeConversationId"
|
|
ref="conversationRef"
|
|
ref="conversationRef"
|
|
|
|
+ @onConversationCreate="handleConversationCreate"
|
|
@onConversationClick="handleConversationClick"
|
|
@onConversationClick="handleConversationClick"
|
|
@onConversationClear="handlerConversationClear"
|
|
@onConversationClear="handlerConversationClear"
|
|
@onConversationDelete="handlerConversationDelete"
|
|
@onConversationDelete="handlerConversationDelete"
|
|
@@ -440,6 +441,14 @@ const handlerTitleSuccess = async () => {
|
|
await getConversation(activeConversationId.value)
|
|
await getConversation(activeConversationId.value)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * 对话 - 创建
|
|
|
|
+ */
|
|
|
|
+const handleConversationCreate = async () => {
|
|
|
|
+ // 创建新的对话,清空输入框
|
|
|
|
+ prompt.value = ''
|
|
|
|
+}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 对话 - 点击
|
|
* 对话 - 点击
|
|
*/
|
|
*/
|