Browse Source

发送成功回调

zhengnaiwen_citu 10 months ago
parent
commit
7e1e11f775
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/recruit/components/message/index.vue

+ 1 - 1
src/views/recruit/components/message/index.vue

@@ -114,6 +114,7 @@ const { conversationList } = initConnect(async (successful) => {
     Snackbar.error('发送失败')
     return
   }
+  chatRef.value.reset()
   // 发送成功
   const { list } = await getMoreMessages(1, channelItem.value)
   messageItems.value = list.value
@@ -154,7 +155,6 @@ const info = ref({})
 
 const handleUpdate = (val) => {
   send(val.value, channelItem.value)
-  chatRef.value.reset()
 }
 
 const handleSearch = () => {