BUG修复

This commit is contained in:
kron
2025-07-17 09:35:30 +08:00
parent 69ad55da41
commit 124f50429d
5 changed files with 21 additions and 24 deletions

View File

@@ -47,15 +47,8 @@ onMounted(async () => {
rank.value =
battleInfo.playerStats.findIndex((p) => p.id === user.value.id) + 1;
if (mine) {
if (battleInfo.mode === 1) {
totalPoints.value = mine.roundStats.reduce(
(last, next) => last + next.arrows.length,
0
);
if (mine.team === battleInfo.winner) ifWin.value = true;
} else if (battleInfo.mode === 2) {
totalPoints.value = mine.totalScore;
}
totalPoints.value = mine.totalScore;
ifWin.value = battleInfo.mode === 1 && mine.team === battleInfo.winner;
}
// const result = await getHomeData();
// if (result.user) updateUser(result.user);