diff --git a/src/views/publish/publishMap/editSubsystem.vue b/src/views/publish/publishMap/editSubsystem.vue index ab6069e43..a01789569 100644 --- a/src/views/publish/publishMap/editSubsystem.vue +++ b/src/views/publish/publishMap/editSubsystem.vue @@ -141,15 +141,16 @@ export default { this.memberMetroList = []; this.memberRailwayList = []; this.memberEmergencyList = []; - memberResp.data.METRO.forEach(member => { + const {METRO = [], RAILWAY = [], EMERGENCY = []} = memberResp.data; + METRO.forEach(member => { const data = this.handleMember(member, stationResp.data); this.memberMetroList.push(data); }); - memberResp.data.RAILWAY.forEach(member => { + RAILWAY.forEach(member => { const data = this.handleMember(member, stationResp.data); this.memberRailwayList.push(data); }); - memberResp.data.EMERGENCY.forEach(member => { + EMERGENCY.forEach(member => { const data = this.handleMember(member, stationResp.data); this.memberEmergencyList.push(data); });