Explorar o código

清空本地选中

wyq %!s(int64=3) %!d(string=hai) anos
pai
achega
3c68f4b269
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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();