mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-14 19:05:07 +08:00
【解决todo】Chat 聊天,新建对话清空输入框
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
<!-- 左侧:会话列表 -->
|
||||
<Conversation :active-id="activeConversationId"
|
||||
ref="conversationRef"
|
||||
@onConversationCreate="handleConversationCreate"
|
||||
@onConversationClick="handleConversationClick"
|
||||
@onConversationClear="handlerConversationClear"
|
||||
@onConversationDelete="handlerConversationDelete"
|
||||
@ -440,6 +441,14 @@ const handlerTitleSuccess = async () => {
|
||||
await getConversation(activeConversationId.value)
|
||||
}
|
||||
|
||||
/**
|
||||
* 对话 - 创建
|
||||
*/
|
||||
const handleConversationCreate = async () => {
|
||||
// 创建新的对话,清空输入框
|
||||
prompt.value = ''
|
||||
}
|
||||
|
||||
/**
|
||||
* 对话 - 点击
|
||||
*/
|
||||
|
Reference in New Issue
Block a user