diff --git a/src/components/BowTarget.vue b/src/components/BowTarget.vue
index 37bf567..fdfc48c 100644
--- a/src/components/BowTarget.vue
+++ b/src/components/BowTarget.vue
@@ -63,9 +63,7 @@ const timer = ref(null);
watch(
() => props.start,
(newVal) => {
- if (newVal) {
- startCount.value = true;
- }
+ startCount.value = newVal;
},
{
immediate: true,
diff --git a/src/components/ScoreResult.vue b/src/components/ScoreResult.vue
index 574ddbf..9c21411 100644
--- a/src/components/ScoreResult.vue
+++ b/src/components/ScoreResult.vue
@@ -1,5 +1,5 @@
@@ -73,13 +82,24 @@ setTimeout(() => {
-
-
- 完成
+
+
+
+
+ {{ finished ? "完成" : "重新挑战" }}
diff --git a/src/components/ShootProgress.vue b/src/components/ShootProgress.vue
index 252534d..cc0079e 100644
--- a/src/components/ShootProgress.vue
+++ b/src/components/ShootProgress.vue
@@ -56,6 +56,7 @@ watch(
(newVal, oldVal) => {
if (newVal === false) {
if (timer.value) clearInterval(timer.value);
+ remain.value = props.total;
}
if (!oldVal && newVal === true) {
setTimeout(() => {
@@ -86,7 +87,7 @@ onUnmounted(() => {
- {{ remain === 0 ? "射箭时间到!" : tips }}
+ {{ start && remain === 0 ? "射箭时间到!" : tips }}