pull/486/head
xiaohong 2024-07-19 13:23:34 +08:00
commit b7f06ec698
2 changed files with 5 additions and 0 deletions

View File

@ -207,6 +207,7 @@ const refreshMessageList = async (message?: any) => {
}
pushMessage(message)
} else {
// TODO @puhui999 page createTime
queryParams.pageNo = 1
await getMessageList()
}
@ -220,6 +221,8 @@ const refreshMessageList = async (message?: any) => {
}
}
/** 获得新会话的消息列表 */
// TODO @puhui999 list merge
const getNewMessageList = async (val: KeFuConversationRespVO) => {
// ,
queryParams.pageNo = 1

View File

@ -64,6 +64,7 @@ watchEffect(() => {
// 2.2 KEFU_MESSAGE_TYPE
if (type === WebSocketMessageTypeConstants.KEFU_MESSAGE_TYPE) {
//
// TODO @puhui999 update
getConversationList()
//
keFuChatBoxRef.value?.refreshMessageList(JSON.parse(jsonMessage.content))
@ -72,6 +73,7 @@ watchEffect(() => {
// 2.3 KEFU_MESSAGE_ADMIN_READ
if (type === WebSocketMessageTypeConstants.KEFU_MESSAGE_ADMIN_READ) {
//
// TODO @puhui999 update
getConversationList()
}
} catch (error) {