|
|
|
|
@ -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()
|
|
|
|
|
|