diff --git a/src/views/mall/promotion/kefu/components/KeFuConversationList.vue b/src/views/mall/promotion/kefu/components/KeFuConversationList.vue index 042a29fd..328120fb 100644 --- a/src/views/mall/promotion/kefu/components/KeFuConversationList.vue +++ b/src/views/mall/promotion/kefu/components/KeFuConversationList.vue @@ -89,14 +89,15 @@ const { replaceEmoji } = useEmoji() const activeConversationId = ref(-1) // 选中的会话 const collapse = computed(() => appStore.getCollapse) // 折叠菜单 -const lastMessageTimeMap = ref>(new Map()) /** 计算消息最后发送时间距离现在过去了多久 */ +const lastMessageTimeMap = ref>(new Map()) const calculationLastMessageTime = () => { kefuStore.getConversationList?.forEach((item) => { lastMessageTimeMap.value.set(item.id, formatPast(item.lastMessageTime, 'YYYY-MM-DD')) }) } defineExpose({ calculationLastMessageTime }) + /** 打开右侧的消息列表 */ const emits = defineEmits<{ (e: 'change', v: KeFuConversationRespVO): void