From 69d9567741147de34e0597eb3cf1d9e43bca2a6a Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Fri, 12 Apr 2024 08:51:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E5=85=B3=E7=B3=BB=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/portrayal/house/cpts/graph.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;