fix bug
This commit is contained in:
@@ -51,8 +51,12 @@ export default defineStore("store", {
|
||||
updateRank(data = {}) {
|
||||
this.rankData = { rank: data.rank || [], ringRank: data.ringRank || [] };
|
||||
},
|
||||
updateUser(user = {}) {
|
||||
async updateUser(user = {}) {
|
||||
this.user = { ...defaultUser, ...user };
|
||||
if (user.avatar) {
|
||||
const avatarInfo = await uni.getImageInfo({ src: user.avatar });
|
||||
this.user.avatar = avatarInfo.path;
|
||||
}
|
||||
const rankInfos = this.config.randInfos || [];
|
||||
let lvlName = "";
|
||||
if (this.user.scores) {
|
||||
|
||||
Reference in New Issue
Block a user