diff --git a/src/components/BowTarget.vue b/src/components/BowTarget.vue index d5f3d05..ad96e48 100644 --- a/src/components/BowTarget.vue +++ b/src/components/BowTarget.vue @@ -38,6 +38,10 @@ const props = defineProps({ type: Boolean, default: true, }, + showE: { + type: Boolean, + default: true, + }, }); const showRoundTips = ref(false); @@ -84,7 +88,7 @@ function calcRealY(num) { 经验 +1 @@ -93,34 +97,37 @@ function calcRealY(num) { class="round-tip fade-in" >{{ scores[scores.length - 1].ring }} - - + + + + + + + diff --git a/src/pages/melee-match.vue b/src/pages/melee-match.vue index 7c99f9c..1594459 100644 --- a/src/pages/melee-match.vue +++ b/src/pages/melee-match.vue @@ -36,20 +36,17 @@ onLoad((options) => { teamSize.value = options.teamSize; }); async function startMatch() { - if (gameType.value && teamSize.value) { - await matchGameAPI(true, gameType.value, teamSize.value); - startMatch.value = true; - } + await matchGameAPI(true, gameType.value, teamSize.value); + matching.value = true; } async function stopMatch() { - if (gameType.value && teamSize.value) { - await matchGameAPI(false, gameType.value, teamSize.value); - startMatch.value = false; - } + await matchGameAPI(false, gameType.value, teamSize.value); + matching.value = false; } async function readyToGo() { if (battleId.value) { await readyGameAPI(battleId.value); + scores.value = []; start.value = true; timerSeq.value = 0; } @@ -118,7 +115,7 @@ onUnmounted(() => { - + 请预先射几箭测试 @@ -128,13 +125,15 @@ onUnmounted(() => { - + { await createPractiseAPI(total); start.value = true; + currentRound.value = 0; scores.value = []; }; @@ -82,7 +83,7 @@ onUnmounted(() => { - + 请预先射几箭测试 @@ -163,6 +163,7 @@ onUnmounted(() => { :redTeam="redTeam" />