细节完善
This commit is contained in:
@@ -129,7 +129,7 @@ const nextStep = async () => {
|
||||
btnDisabled.value = true;
|
||||
step.value = 2;
|
||||
title.value = "-感知距离";
|
||||
const result = await createPractiseAPI(total, 360);
|
||||
const result = await createPractiseAPI(total, 120);
|
||||
if (result) practiseId.value = result.id;
|
||||
} else if (step.value === 2) {
|
||||
showGuide.value = false;
|
||||
@@ -166,7 +166,7 @@ const onClose = async () => {
|
||||
start.value = false;
|
||||
scores.value = [];
|
||||
step.value = 3;
|
||||
const result = await createPractiseAPI(total, 360);
|
||||
const result = await createPractiseAPI(total, 120);
|
||||
if (result) practiseId.value = result.id;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -14,11 +14,10 @@ const arrows = ref([]);
|
||||
const total = ref(0);
|
||||
|
||||
onLoad(async (options) => {
|
||||
if (options.id) {
|
||||
const result = await getPractiseAPI(options.id);
|
||||
arrows.value = result.details;
|
||||
total.value = result.details.length;
|
||||
}
|
||||
if (!options.id) return;
|
||||
const result = await getPractiseAPI(options.id || 176);
|
||||
arrows.value = result.details;
|
||||
total.value = result.details.length;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ async function onComplete() {
|
||||
start.value = false;
|
||||
scores.value = [];
|
||||
currentRound.value = 0;
|
||||
const result = await createPractiseAPI(total, 360);
|
||||
const result = await createPractiseAPI(total, 120);
|
||||
if (result) practiseId.value = result.id;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user