gangyj 3 年之前
父节点
当前提交
97a52cdbc9
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/manager/wbsinfo/edit.vue

+ 5 - 1
src/views/manager/wbsinfo/edit.vue

@@ -469,7 +469,11 @@
           pid = node.data.id
         }
         getLazytree(this.id ,pid,this.userInfo.tenant_id).then((res)=>{
-          return resolve(res.data.data);
+          let arr = [];
+          if(Array.isArray(res.data.data)){
+            arr = res.data.data;
+          }
+          return resolve(arr);
         })
       },