|
@@ -765,11 +765,6 @@ onBeforeMount(() => {
|
|
|
}
|
|
|
return obj;
|
|
|
});
|
|
|
- //需要开始按钮的项目
|
|
|
- let myList = ['situp', 'jumprope', 'jumpingjack', 'footballv1', 'basketballv1', 'volleyball', 'pingpong'];
|
|
|
- if (myList.includes(project) || testList.value.length > 10) {
|
|
|
- needStart.value = true;
|
|
|
- }
|
|
|
|
|
|
//展示样式控制
|
|
|
if (testList.value.length <= 5) {
|
|
@@ -785,6 +780,12 @@ onBeforeMount(() => {
|
|
|
if (testList.value.length > 10) {
|
|
|
styleType.value = 3;
|
|
|
}
|
|
|
+
|
|
|
+ //需要开始按钮的项目
|
|
|
+ let myList = ['situp', 'jumprope', 'jumpingjack', 'footballv1', 'basketballv1', 'volleyball', 'pingpong'];
|
|
|
+ if (myList.includes(project) && styleType.value == 3) {
|
|
|
+ needStart.value = true;
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
onMounted(() => {
|