diff --git a/src/components/BowTarget.vue b/src/components/BowTarget.vue index fdfc48c..f3d07b9 100644 --- a/src/components/BowTarget.vue +++ b/src/components/BowTarget.vue @@ -25,10 +25,6 @@ const props = defineProps({ type: Number, default: 0, }, - tips: { - type: String, - default: "", - }, scores: { type: Array, default: () => [], @@ -183,7 +179,6 @@ const simulShoot = async () => { - {{ tips }} 模拟射箭 @@ -263,13 +258,6 @@ const simulShoot = async () => { border-radius: 50%; border: 1px solid #fff; } -.container > text { - width: 100%; - color: #fed847; - text-align: center; - line-height: 40px; - display: block; -} .simul { position: absolute; bottom: 20px; diff --git a/src/components/ShootProgress.vue b/src/components/ShootProgress.vue index cc0079e..6ea8372 100644 --- a/src/components/ShootProgress.vue +++ b/src/components/ShootProgress.vue @@ -56,11 +56,10 @@ watch( (newVal, oldVal) => { if (newVal === false) { if (timer.value) clearInterval(timer.value); - remain.value = props.total; } if (!oldVal && newVal === true) { + remain.value = props.total; setTimeout(() => { - remain.value = props.total; timer.value = setInterval(() => { if (remain.value > 0) { remain.value--; diff --git a/src/components/StartCountdown.vue b/src/components/StartCountdown.vue index e3998a6..f3e3806 100644 --- a/src/components/StartCountdown.vue +++ b/src/components/StartCountdown.vue @@ -38,7 +38,7 @@ onUnmounted(() => {