coys 2 년 전
부모
커밋
12f6fc9231
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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
+          }
         }
       },
     },