fix:优化成绩详情展示

This commit is contained in:
2026-05-11 17:57:29 +08:00
parent b1238eff57
commit 3f181778a1
2 changed files with 11 additions and 3 deletions

View File

@@ -55,7 +55,14 @@ const onPractiseLoading = async (page) => {
};
const getName = (battle) => {
if (battle.mode <= 3) return `${battle.mode}V${battle.mode}`;
return battle.mode + "人大乱斗";
// 排位赛大乱斗mode 数字与实际人数不一致,使用固定映射
if (battle.way === 2) {
if (battle.mode === 4) return "5人大乱斗";
if (battle.mode === 5) return "10人大乱斗";
}
// 好友约战大乱斗:从 teams[0].players 取实际参与人数动态展示
const count = battle.teams?.[0]?.players?.length;
return count ? `${count}人大乱斗` : "大乱斗";
};
/**