代码调整

This commit is contained in:
dong 2023-01-10 15:35:04 +08:00
parent 69771dd4b3
commit e6c29ce60b

View File

@ -828,7 +828,7 @@ const map = {
state.stationControlMap[station.code] = centrailzedList; state.stationControlMap[station.code] = centrailzedList;
station.relStationCodeList.forEach(relStationCode => { station.relStationCodeList.forEach(relStationCode => {
state.stationControlMap[relStationCode] = centrailzedList; state.stationControlMap[relStationCode] = centrailzedList;
if (state.mapDevice[relStationCode].centralized) { if (state.mapDevice[relStationCode].centralized && !centrailzedList.includes(relStationCode)) {
centrailzedList.push(relStationCode); centrailzedList.push(relStationCode);
} }
}); });