排位赛内容完善

This commit is contained in:
kron
2025-06-09 12:24:01 +08:00
parent e49de0e288
commit 0420f770c3
8 changed files with 71 additions and 35 deletions

View File

@@ -157,8 +157,9 @@ export const getGameAPI = async (battleId) => {
data.players.push({
...item.playerBattleStats,
arrowHistory: item.roundRecords[0].arrowHistory,
})
});
});
data.players = data.players.sort((a, b) => b.totalScore - a.totalScore);
}
console.log("game result:", result);
console.log("format data:", data);