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

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

Loading…
Cancel
Save