Parcourir la source

选择区修改

林旭祥 il y a 5 mois
Parent
commit
95a788fd42
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 5 5
      src/components/OptionWindow/index.vue

+ 5 - 5
src/components/OptionWindow/index.vue

@@ -238,11 +238,6 @@ const getClass = async () => {
 
 //选择测试区
 const getChooseArea = (data: any) => {
-  if (chooseArea.value.length > 10) {
-    optionForm.value.gesture = false;
-  } else {
-    optionForm.value.gesture = true;
-  }
   let id = data.key;
   let inData = chooseArea.value.includes(id);
   if (inData) {
@@ -254,6 +249,11 @@ const getChooseArea = (data: any) => {
     //不存在就点选
     chooseArea.value.push(id);
   }
+  if (chooseArea.value.length > 10) {
+    optionForm.value.gesture = false;
+  } else {
+    optionForm.value.gesture = true;
+  }
 };
 
 //选择测试标准