diff --git a/pages/NEUIKit/pages/Conversation/conversation-list/index.vue b/pages/NEUIKit/pages/Conversation/conversation-list/index.vue index fd4dd3f..6a68564 100644 --- a/pages/NEUIKit/pages/Conversation/conversation-list/index.vue +++ b/pages/NEUIKit/pages/Conversation/conversation-list/index.vue @@ -71,13 +71,12 @@ const handleSessionItemClick = async (conversation: V2NIMConversation) => { flag = true; await uni.$UIKitStore.uiStore.selectConversation(conversation.conversationId); - console.log("handleSessionItemClick", conversation); const itemUserInfo = await uni.$UIKitStore.userStore.getUserActive(conversation.conversationId.split('|')[2]) let _title = ''; if(itemUserInfo.serverExtension){ - _title = '@' + JSON.parse(itemUserInfo.serverExtension).fullName; + _title = itemUserInfo.name + '@' + JSON.parse(itemUserInfo.serverExtension).fullName; }else{ - _title = ''; + _title = itemUserInfo.name; } customNavigateTo({ url: "/pages/Chat/index?ctitle=" + _title, diff --git a/root/NEUIKit/pages/Chat/index.vue b/root/NEUIKit/pages/Chat/index.vue index 1a69b2b..b3c23a4 100644 --- a/root/NEUIKit/pages/Chat/index.vue +++ b/root/NEUIKit/pages/Chat/index.vue @@ -375,9 +375,6 @@ const setNavTitle = () => { const subTitle = `(${team?.memberCount || 0})`; title.value = (team?.name || "") + subTitle; } - uni.setNavigationBarTitle({ - title: title.value, - }); }; onShow(function () { @@ -401,7 +398,7 @@ onLoad((options) => { uni.$on(events.HANDLE_MOVE_THROUGH, (flag) => { moveThrough.value = flag; }); - + console.log("options聊天", options); uni.setNavigationBarTitle({ title: options.ctitle, });