소스 검색

清空本地选中

wyq 3 년 전
부모
커밋
3c68f4b269
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/components/knowledgeExtra/AddTermSet.vue

+ 4 - 0
src/components/knowledgeExtra/AddTermSet.vue

@@ -522,6 +522,9 @@ export default {
       this.multipleSelection = val;
     },
     add() {
+      if(this.multipleSelection.length == 0){
+        return
+      }
       this.processing(this.multipleSelection);
     },
     //处理数据
@@ -540,6 +543,7 @@ export default {
         this.leftList = this.form.concepts
       });
       this.conceptList = [];
+      this.multipleSelection = []
       this.$nextTick(() => {
         setTimeout(() => {
           this.getTreeSearchList();