Browse Source

日志数据为空返回对象,会报错

gangyj 2 years ago
parent
commit
74507b4610
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/manager/projectinfo/detail.vue

+ 1 - 1
src/views/manager/projectinfo/detail.vue

@@ -1114,7 +1114,7 @@ export default {
 
         this.logrightloading = true;
         let projectTree = await findProjectTree(this.projectForm.id, refId);
-        this.$refs.treetotree2.setRightTree(projectTree.data.data);
+        this.$refs.treetotree2.setRightTree(Array.isArray(projectTree.data.data)?projectTree.data.data:[]);
         this.logrightloading = false;
       } else {
         await this.getLogTreeList();