Skip to content

Commit 7895d18

Browse files
committed
【功能完善】商城: 客服动态计算消息最后发送时间距离现在过去了多久
1 parent fc5df39 commit 7895d18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/mall/promotion/kefu/components/KeFuConversationList.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,15 @@ const { replaceEmoji } = useEmoji()
8989
const activeConversationId = ref(-1) // 选中的会话
9090
const collapse = computed(() => appStore.getCollapse) // 折叠菜单
9191
92-
const lastMessageTimeMap = ref<Map<number, string>>(new Map<number, string>())
9392
/** 计算消息最后发送时间距离现在过去了多久 */
93+
const lastMessageTimeMap = ref<Map<number, string>>(new Map<number, string>())
9494
const calculationLastMessageTime = () => {
9595
kefuStore.getConversationList?.forEach((item) => {
9696
lastMessageTimeMap.value.set(item.id, formatPast(item.lastMessageTime, 'YYYY-MM-DD'))
9797
})
9898
}
9999
defineExpose({ calculationLastMessageTime })
100+
100101
/** 打开右侧的消息列表 */
101102
const emits = defineEmits<{
102103
(e: 'change', v: KeFuConversationRespVO): void

0 commit comments

Comments
 (0)