细节完善

This commit is contained in:
kron
2025-07-18 22:17:17 +08:00
parent 115e0cefbb
commit c8728786e6
12 changed files with 41 additions and 51 deletions

View File

@@ -67,7 +67,7 @@ export default defineStore("store", {
return getLvlImage(rankLvl, this.config.randInfos);
},
updateRank(data = {}) {
this.rankData = { rank: data.rank || [], ringRank: data.ringRank || [] };
this.rankData = { ...(data || {}) };
},
async updateUser(user = {}) {
this.user = { ...defaultUser, ...user };