BUG修复
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user