增加 更新面板时触发对新获取角色数据进行强制排名更新 的逻辑

This commit is contained in:
Kokomi 2022-11-09 10:44:05 +08:00
parent 6f1eb64649
commit 159660108d

View File

@ -36,13 +36,13 @@ export async function profileList (e) {
tmp.level = profile.level || 1
tmp.cons = profile.cons
tmp.isNew = 0
if (rank) {
tmp.groupRank = await rank.getRank(profile)
}
if (newChar[char.name]) {
tmp.isNew = 1
newCount++
}
if (rank) {
tmp.groupRank = await rank.getRank(profile, !!tmp.isNew)
}
chars.push(tmp)
})