【功能完善】商城: 客服会话消息缓存

This commit is contained in:
puhui999
2024-11-09 17:29:49 +08:00
parent e342e91f79
commit df34f65df8
3 changed files with 22 additions and 12 deletions

View File

@ -93,6 +93,10 @@ const emits = defineEmits<{
(e: 'change', v: KeFuConversationRespVO): void
}>()
const openRightMessage = (item: KeFuConversationRespVO) => {
// 同一个会话则不处理
if (activeConversationId.value === item.id) {
return
}
activeConversationId.value = item.id
emits('change', item)
}