Browse Source

多加的null bug

zhouna 4 years ago
parent
commit
fcb36c208e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/components/knowledgeExtra/DiagBaseGroup.vue

+ 3 - 1
src/components/knowledgeExtra/DiagBaseGroup.vue

@@ -60,7 +60,9 @@
         },
         methods:{
             handleInput(val,i){
-                this.data[i]=val;
+                if(val){
+                    this.data[i]=val;
+                }
             },
             setRules(){
                 this.$emit('setRules');