新版房间1v1对战数据调试完成

This commit is contained in:
kron
2026-02-04 17:45:57 +08:00
parent a2674aae5b
commit 7f73f3ebb3
18 changed files with 524 additions and 843 deletions

View File

@@ -22,9 +22,10 @@ const props = defineProps({
},
});
const normalRounds = computed(
() => props.roundResults.length - props.goldenRound
);
const normalRounds = computed(() => {
const count = props.roundResults.findIndex((item) => !!item.ifGold);
return count > 0 ? count : props.roundResults.length;
});
</script>
<template>
@@ -59,8 +60,8 @@ const normalRounds = computed(
</block>
<view>
<text>{{
result.blueArrows.length
? result.blueArrows
result.shoots[1] && result.shoots[1].length
? result.shoots[1]
.map((item) => item.ring)
.reduce((last, next) => last + next, 0)
: ""
@@ -94,8 +95,8 @@ const normalRounds = computed(
</block>
<view>
<text>{{
result.redArrows.length
? result.redArrows
result.shoots[2] && result.shoots[2].length
? result.shoots[2]
.map((item) => item.ring)
.reduce((last, next) => last + next, 0)
: ""