提交 5628941c 编写于 作者: DCloud_JSON's avatar DCloud_JSON

Update index.vue

上级 22d1c411
...@@ -53,7 +53,7 @@ let $users = { ...@@ -53,7 +53,7 @@ let $users = {
} }
return Array.isArray(param) ? userInfoList : userInfoList[0] return Array.isArray(param) ? userInfoList : userInfoList[0]
}, },
getNickname(user_id){ getNickname(user_id,tmpNickname = '[昵称加载中...]'){
const nickname = $state.users[user_id]?.nickname const nickname = $state.users[user_id]?.nickname
if(nickname){ if(nickname){
return nickname return nickname
...@@ -62,7 +62,7 @@ let $users = { ...@@ -62,7 +62,7 @@ let $users = {
$users.loadTask.add(user_id) $users.loadTask.add(user_id)
$state.users[user_id] = { $state.users[user_id] = {
nickname:'[昵称加载中...]', nickname:tmpNickname,
_id:user_id, _id:user_id,
__loading:true __loading:true
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册