update:优化节奏训练结算
This commit is contained in:
@@ -21,6 +21,10 @@ const props = defineProps({
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
trainingType: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
});
|
||||
const items = ref(new Array(props.total).fill(9));
|
||||
const bgImages = [
|
||||
@@ -34,7 +38,9 @@ const getDisplayText = (arrow) => {
|
||||
};
|
||||
|
||||
const isLowScore = (arrow) => {
|
||||
if (!arrow || arrow.ringX) return false;
|
||||
if (!arrow) return false;
|
||||
if (props.trainingType === "rhythm") return arrow.ok !== true;
|
||||
if (arrow.ringX) return false;
|
||||
const ring = Number(arrow.ring);
|
||||
return Number.isFinite(ring) && ring < 6;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user