소스 검색

基础类型修改

duy 6 일 전
부모
커밋
ea80d02d70
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/views/codeRule/ConditionsSet.vue

+ 4 - 4
src/views/codeRule/ConditionsSet.vue

@@ -384,10 +384,10 @@ export default {
         }
       });
        const selectedOption = this.sampleOptions.find(option => option.value === value);
-       this.basicOptions = selectedOption ? selectedOption.info.map(item => ({
-         value: item.id,
-         label: item.name
-       })) : [];
+      this.basicOptions = selectedOption ? selectedOption.info.filter(item => item.name !== '').map(item => ({
+        value: item.id,
+        label: item.name
+      })) : [];
        
     },
     handleDeleteItem(item, index) {