林旭祥 hai 6 meses
pai
achega
146f131153
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      src/components/OptionWindow/index.vue

+ 7 - 0
src/components/OptionWindow/index.vue

@@ -173,6 +173,10 @@ const open = async (data: any) => {
   chooseArea.value = [];
   if (['situp', 'jumprope', 'jumpingjack', 'footballv1', 'basketballv1', 'volleyball', 'volleyballv1', 'pingpong'].includes(project.value.key)) {
     optionForm.value.gesture = true;
+    optionForm.value.time = 60; //默认60秒
+    if (musicList.value.length > 0) {
+      optionForm.value.music = musicList.value[0].url;//默认第一首
+    }
   } else {
     optionForm.value.gesture = false;
   }
@@ -267,6 +271,9 @@ const getAllArea = (data: any) => {
     }).map((item: any) => {
       return item.key;
     })
+    if (chooseArea.value.length > 10) {
+      optionForm.value.gesture = false;
+    }
   } else {
     //全取消
     chooseArea.value = [];