From 5628941c82a79a9254b8a14c97fda618878b33f2 Mon Sep 17 00:00:00 2001 From: linju Date: Fri, 8 Nov 2024 19:53:32 +0800 Subject: [PATCH] Update index.vue --- sdk/methods/users.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/methods/users.js b/sdk/methods/users.js index 0f7ad77..80aad58 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 } -- GitLab