diff --git a/pages/NEUIKit/components/Appellation.vue b/pages/NEUIKit/components/Appellation.vue index ca82b81..8d25c7f 100644 --- a/pages/NEUIKit/components/Appellation.vue +++ b/pages/NEUIKit/components/Appellation.vue @@ -2,7 +2,10 @@ {{ appellation }} + {{ appellation }} + {{ subtitle }} + @@ -36,16 +39,25 @@ const { account, teamId, ignoreAlias, nickFromMsg } = withDefaults( fontSize: 16, } ) - +const subtitle = ref(''); const uninstallAppellationWatch = autorun(() => { - appellation.value = deepClone( - uni.$UIKitStore.uiStore.getAppellation({ - account, - teamId, - ignoreAlias, - nickFromMsg, - }) - ) + async function getUserInfo() { + try { + const res = await uni.$UIKitStore.userStore.getUserActive('10023') + return res + } catch (error) { + console.error('getUserInfo error:', error) + } + } + getUserInfo().then(res => { + console.log('getUserInfo 热死', res) + if(res.serverExtension){ + subtitle.value = '@' + JSON.parse(res.serverExtension).fullName; + }else{ + subtitle.value = ''; + } + appellation.value = res.name; + }) }) onUnmounted(() => { uninstallAppellationWatch() diff --git a/root/NEUIKit/pages/Chat/message/message-item.vue b/root/NEUIKit/pages/Chat/message/message-item.vue index 402f5db..a4b0fa5 100644 --- a/root/NEUIKit/pages/Chat/message/message-item.vue +++ b/root/NEUIKit/pages/Chat/message/message-item.vue @@ -93,7 +93,7 @@ : '' " :goto-user-card="true" />