fix:增加新轮次时清空上一轮靶纸逻辑
This commit is contained in:
@@ -211,6 +211,9 @@ function onBattleEnd() {
|
|||||||
function onNewRound(msg, prevRound) {
|
function onNewRound(msg, prevRound) {
|
||||||
showRoundTip.value = true;
|
showRoundTip.value = true;
|
||||||
isFinalShoot.value = msg.current.goldRound;
|
isFinalShoot.value = msg.current.goldRound;
|
||||||
|
// 新轮次开始时立即清空靶纸箭迹,避免残留上一轮落点至新轮次第一箭到来
|
||||||
|
scores.value = [];
|
||||||
|
blueScores.value = [];
|
||||||
// 决金轮箭数不确定(平局后可能再加一箭),清零 totalShot 隐藏箭数显示
|
// 决金轮箭数不确定(平局后可能再加一箭),清零 totalShot 隐藏箭数显示
|
||||||
if (msg.current.goldRound) {
|
if (msg.current.goldRound) {
|
||||||
store.updateShotInfo(0, 0);
|
store.updateShotInfo(0, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user