fix:优化决金箭的数量展示

This commit is contained in:
2026-05-11 15:14:30 +08:00
parent c8c2abf3e7
commit b1238eff57

View File

@@ -160,6 +160,10 @@ function onBattleEnd() {
function onNewRound(msg, prevRound) {
showRoundTip.value = true;
isFinalShoot.value = msg.current.goldRound;
// 决金箭轮每人只射一箭,重置箭数显示为 (0/1)
if (msg.current.goldRound) {
uni.$emit("update-shot", { currentShot: 0, totalShot: 1 });
}
// 用传入的 prevRound捕获时刻的旧轮次展示结算 Tip与进度条 currentRound 解耦
roundTipRound.value = prevRound;
const latestRound = msg.rounds[prevRound - 1];