优化几个客服不显示昵称问题
This commit is contained in:
@@ -35,7 +35,7 @@ const canSend = computed(() => content.value.trim() !== '' || attachments.value.
|
|||||||
const memberText = computed(() => {
|
const memberText = computed(() => {
|
||||||
const participants = conversation.value?.participants || []
|
const participants = conversation.value?.participants || []
|
||||||
if (participants.length === 0) return conversation.value?.type === 'general_support' ? '平台客服' : '订单群聊'
|
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) {
|
function handleSSEEvent(event: ChatEvent) {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const canSend = computed(() => content.value.trim() !== '' || attachments.value.
|
|||||||
const memberText = computed(() => {
|
const memberText = computed(() => {
|
||||||
const participants = conversation.value?.participants || []
|
const participants = conversation.value?.participants || []
|
||||||
if (participants.length === 0) return conversation.value?.type === 'general_support' ? '平台客服' : '订单群聊'
|
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) {
|
function handleSSEEvent(event: ChatEvent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user