update:优化个人训练

This commit is contained in:
2026-07-27 16:38:53 +08:00
parent c5618fb60b
commit e6f11d3684
6 changed files with 221 additions and 48 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ const props = defineProps({
}
.header > view:first-child > view:last-child > text:last-child {
font-size: 10px;
/* background-color: #5f51ff; */
background-color: #5f51ff;
padding: 2px 5px;
border-radius: 10px;
margin-top: 5px;
@@ -35,6 +35,10 @@ const props = defineProps({
type: Number,
default: 0,
},
hasNextDifficulty: {
type: Boolean,
default: false,
},
result: {
type: Object,
default: () => ({}),
@@ -297,9 +301,7 @@ const resultRows = computed(() => {
});
});
const advancesDifficulty = computed(() =>
["base", "endurance"].includes(resultTrainingType.value)
);
const advancesDifficulty = computed(() => props.hasNextDifficulty);
const primaryText = computed(() =>
advancesDifficulty.value ? "下一难度" : "再来一次"
);