Explorar o código

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

gangyj %!s(int64=2) %!d(string=hai) anos
pai
achega
74507b4610
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();