细节完善

This commit is contained in:
kron
2026-02-10 17:03:25 +08:00
parent 88f1ef5d95
commit 608de34dd3
10 changed files with 67 additions and 62 deletions

View File

@@ -21,7 +21,7 @@ import {
} from "@/apis";
import { sharePractiseData } from "@/canvas";
import { wxShare, debounce } from "@/util";
import { MESSAGETYPESV2, MESSAGETYPES, roundsName } from "@/constants";
import { MESSAGETYPESV2, roundsName } from "@/constants";
import useStore from "@/store";
import { storeToRefs } from "pinia";
@@ -31,7 +31,6 @@ const { user } = storeToRefs(store);
const start = ref(false);
const scores = ref([]);
const total = 12;
const currentRound = ref(0);
const practiseResult = ref({});
const practiseId = ref("");
const showGuide = ref(false);
@@ -39,7 +38,6 @@ const tips = ref("");
const onReady = async () => {
await startPractiseAPI();
currentRound.value = 0;
scores.value = [];
start.value = true;
audioManager.play("练习开始");
@@ -69,7 +67,6 @@ async function onComplete() {
practiseResult.value = {};
start.value = false;
scores.value = [];
currentRound.value = 0;
const result = await createPractiseAPI(total, 120);
if (result) practiseId.value = result.id;
}
@@ -132,7 +129,7 @@ onBeforeUnmount(() => {
</view>
<BowTarget
:totalRound="start ? total / 4 : 0"
:currentRound="currentRound"
:currentRound="scores.length % 3"
:scores="scores"
/>
<ScorePanel2 :arrows="scores" />