优化几个客服不显示昵称问题

This commit is contained in:
yml
2026-06-05 19:49:24 +08:00
parent 92c603794a
commit e32362f425
2 changed files with 2 additions and 2 deletions
@@ -35,7 +35,7 @@ const canSend = computed(() => content.value.trim() !== '' || attachments.value.
const memberText = computed(() => {
const participants = conversation.value?.participants || []
if (participants.length === 0) return conversation.value?.type === 'general_support' ? '平台客服' : '订单群聊'
return participants.map(item => roleLabel(item.role)).join(' · ')
return participants.map(item => `${roleLabel(item.role)}${item.display_name}`).join(' / ')
})
function handleSSEEvent(event: ChatEvent) {
@@ -34,7 +34,7 @@ const canSend = computed(() => content.value.trim() !== '' || attachments.value.
const memberText = computed(() => {
const participants = conversation.value?.participants || []
if (participants.length === 0) return conversation.value?.type === 'general_support' ? '平台客服' : '订单群聊'
return participants.map(item => roleLabel(item.role)).join(' · ')
return participants.map(item => `${roleLabel(item.role)}${item.display_name}`).join(' / ')
})
function handleSSEEvent(event: ChatEvent) {