添加练习超时,重新挑战

This commit is contained in:
kron
2025-07-05 13:12:58 +08:00
parent 79c869a3f3
commit 054bf2ef21
8 changed files with 88 additions and 29 deletions

View File

@@ -105,10 +105,20 @@ const nextStep = async () => {
};
const onClose = () => {
setTimeout(() => {
if (
practiseResult.value.arrows &&
practiseResult.value.arrows.length === total
) {
setTimeout(() => {
practiseResult.value = {};
step.value = 5;
}, 500);
} else {
practiseResult.value = {};
step.value = 5;
}, 500);
start.value = false;
scores.value = [];
step.value = 3;
}
};
</script>
@@ -225,6 +235,7 @@ const onClose = () => {
<ScoreResult
v-if="practiseResult.arrows"
:rowCount="6"
:total="total"
:onClose="onClose"
:result="practiseResult"
:tipSrc="`../static/${