代码调整

This commit is contained in:
joylink_cuiweidong 2022-10-14 15:58:46 +08:00
parent 0062a6d1f6
commit 0ed2bf8193

View File

@ -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);
});