Browse Source

选择区修改

林旭祥 5 months ago
parent
commit
95a788fd42
1 changed files with 5 additions and 5 deletions
  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) => {
 const getChooseArea = (data: any) => {
-  if (chooseArea.value.length > 10) {
-    optionForm.value.gesture = false;
-  } else {
-    optionForm.value.gesture = true;
-  }
   let id = data.key;
   let id = data.key;
   let inData = chooseArea.value.includes(id);
   let inData = chooseArea.value.includes(id);
   if (inData) {
   if (inData) {
@@ -254,6 +249,11 @@ const getChooseArea = (data: any) => {
     //不存在就点选
     //不存在就点选
     chooseArea.value.push(id);
     chooseArea.value.push(id);
   }
   }
+  if (chooseArea.value.length > 10) {
+    optionForm.value.gesture = false;
+  } else {
+    optionForm.value.gesture = true;
+  }
 };
 };
 
 
 //选择测试标准
 //选择测试标准