fix:优化成绩详情展示
This commit is contained in:
@@ -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}人大乱斗` : "大乱斗";
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user