diff --git a/sdk/methods/users.js b/sdk/methods/users.js index 0f7ad77a6ff64de1ee64f62009afdbdb5b6d8f30..80aad58725cd33e64fffc0372d2c8871b3b294e3 100644 --- a/sdk/methods/users.js +++ b/sdk/methods/users.js @@ -53,7 +53,7 @@ let $users = { } return Array.isArray(param) ? userInfoList : userInfoList[0] }, - getNickname(user_id){ + getNickname(user_id,tmpNickname = '[昵称加载中...]'){ const nickname = $state.users[user_id]?.nickname if(nickname){ return nickname @@ -62,7 +62,7 @@ let $users = { $users.loadTask.add(user_id) $state.users[user_id] = { - nickname:'[昵称加载中...]', + nickname:tmpNickname, _id:user_id, __loading:true }