coys hace 2 años
padre
commit
12f6fc9231
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/components/orgTree/index.vue

+ 4 - 1
src/components/orgTree/index.vue

@@ -43,7 +43,10 @@ export default {
         if(!val){
           this.selected = null
         }else {
-          this.selected = this.value
+          if(this.treeData&&this.treeData.length>0){
+
+            this.selected = this.value
+          }
         }
       },
     },