no message

cyl/master-0822
jscyl13849007907 3 months ago
parent c1c8cb8441
commit 1acb9ac8b4

@ -71,13 +71,12 @@ const handleSessionItemClick = async (conversation: V2NIMConversation) => {
flag = true; flag = true;
await uni.$UIKitStore.uiStore.selectConversation(conversation.conversationId); await uni.$UIKitStore.uiStore.selectConversation(conversation.conversationId);
console.log("handleSessionItemClick", conversation);
const itemUserInfo = await uni.$UIKitStore.userStore.getUserActive(conversation.conversationId.split('|')[2]) const itemUserInfo = await uni.$UIKitStore.userStore.getUserActive(conversation.conversationId.split('|')[2])
let _title = ''; let _title = '';
if(itemUserInfo.serverExtension){ if(itemUserInfo.serverExtension){
_title = '@' + JSON.parse(itemUserInfo.serverExtension).fullName; _title = itemUserInfo.name + '@' + JSON.parse(itemUserInfo.serverExtension).fullName;
}else{ }else{
_title = ''; _title = itemUserInfo.name;
} }
customNavigateTo({ customNavigateTo({
url: "/pages/Chat/index?ctitle=" + _title, url: "/pages/Chat/index?ctitle=" + _title,

@ -375,9 +375,6 @@ const setNavTitle = () => {
const subTitle = `(${team?.memberCount || 0})`; const subTitle = `(${team?.memberCount || 0})`;
title.value = (team?.name || "") + subTitle; title.value = (team?.name || "") + subTitle;
} }
uni.setNavigationBarTitle({
title: title.value,
});
}; };
onShow(function () { onShow(function () {
@ -401,7 +398,7 @@ onLoad((options) => {
uni.$on(events.HANDLE_MOVE_THROUGH, (flag) => { uni.$on(events.HANDLE_MOVE_THROUGH, (flag) => {
moveThrough.value = flag; moveThrough.value = flag;
}); });
console.log("options聊天", options);
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: options.ctitle, title: options.ctitle,
}); });

Loading…
Cancel
Save