排位赛内容完善
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user