浏览代码

选择区修改

林旭祥 5 月之前
父节点
当前提交
95a788fd42
共有 1 个文件被更改,包括 5 次插入5 次删除
  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;
+  }
 };
 
 //选择测试标准