diff --git a/src/views/modules/portrayal/house/cpts/graph.vue b/src/views/modules/portrayal/house/cpts/graph.vue index 02646ceb0..ffdbb1acc 100644 --- a/src/views/modules/portrayal/house/cpts/graph.vue +++ b/src/views/modules/portrayal/house/cpts/graph.vue @@ -61,7 +61,7 @@ export default { let url = `/actual/base/peopleRoomOverview/getFamilyRelationshipListByHouseId?type=0&houseId=` + this.houseInfo.id; let { code, data, msg } = await requestPost(url) if (code == 0) { - + if(!data)data = [] // 将房屋本身的信息放到数组元素的第一个 const rootNode = {}; rootNode["id"] = this.houseInfo.id;