update:优化节奏训练计数
This commit is contained in:
@@ -501,14 +501,15 @@ const trainingCopy = computed(() => {
|
|||||||
const targetArrows =
|
const targetArrows =
|
||||||
getPositiveInteger(practiceInfo.value.targetArrows) ||
|
getPositiveInteger(practiceInfo.value.targetArrows) ||
|
||||||
getPositiveInteger(trainingParams.value.totalReq) || totalArrows;
|
getPositiveInteger(trainingParams.value.totalReq) || totalArrows;
|
||||||
const completedArrows = rhythmCompletedRounds.value;
|
// 展示当前节奏序号,从 1 开始;内部仍累计已完成次数。
|
||||||
|
const currentRound = Math.min(totalArrows, rhythmCompletedRounds.value + 1);
|
||||||
const hitReq = rhythmHitReq.value;
|
const hitReq = rhythmHitReq.value;
|
||||||
const qualifiedArrows = scores.value.filter((arrow) => arrow?.ok === true).length;
|
const qualifiedArrows = scores.value.filter((arrow) => arrow?.ok === true).length;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
inline: true,
|
inline: true,
|
||||||
details: [
|
details: [
|
||||||
{ text: `(${completedArrows}/${totalArrows})`, highlight: true },
|
{ text: `(${currentRound}/${totalArrows})`, highlight: true },
|
||||||
{ text: " 个节奏内,跟随节奏射箭,命中 " },
|
{ text: " 个节奏内,跟随节奏射箭,命中 " },
|
||||||
{ text: `(${qualifiedArrows}/${targetArrows})`, highlight: true },
|
{ text: `(${qualifiedArrows}/${targetArrows})`, highlight: true },
|
||||||
{ text: " 箭" },
|
{ text: " 箭" },
|
||||||
|
|||||||
Reference in New Issue
Block a user