no message

cyl/master-0822
jscyl13849007907 3 months ago
parent a094cf364b
commit b0aff270a3

@ -41,23 +41,30 @@ const { account, teamId, ignoreAlias, nickFromMsg } = withDefaults(
)
const subtitle = ref('');
const uninstallAppellationWatch = autorun(() => {
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;
// async function getUserInfo() {
// try {
// const res = await uni.$UIKitStore.userStore.getUserActive('10023')
// return res
// } catch (error) {
// console.error('getUserInfo error:', error)
// }
// }
// getUserInfo().then(res => {
// if(res.serverExtension){
// subtitle.value = '@' + JSON.parse(res.serverExtension).fullName;
// }else{
// subtitle.value = '';
// }
// appellation.value = res.name;
// })
appellation.value = deepClone(
uni.$UIKitStore.uiStore.getAppellation({
account,
teamId,
ignoreAlias,
nickFromMsg,
})
)
})
onUnmounted(() => {
uninstallAppellationWatch()

@ -115,7 +115,7 @@
" :goto-user-card="true" />
<div class="msg-content">
<div class="msg-name 2" v-if="!props.msg.isSelf">
{{ appellation }}{{ props }}
{{ appellation }}
</div>
<MessageBubble :msg="props.msg" :tooltip-visible="true" :bg-visible="true">
<ReplyMessage v-if="!!replyMsg" :replyMsg="replyMsg"></ReplyMessage>

Loading…
Cancel
Save