update:优化个人训练
This commit is contained in:
@@ -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 ? "下一难度" : "再来一次"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user