|
|
@@ -171,8 +171,10 @@ const getCurrentStation = () => {
|
|
|
} else {
|
|
|
var passStationsArry = stationObj.passStations.split(",");
|
|
|
if (stationObj.currentStation == "null" || stationObj.currentStation == "") {
|
|
|
+ console.log(list)
|
|
|
for (var index in list) {
|
|
|
- if (passStationsArry[passStationsArry.length - 1] == list[index].stationName) {
|
|
|
+ console.log(list[index].stationName)
|
|
|
+ if (passStationsArry.indexOf(list[index].stationName) > -1) {
|
|
|
if (index == list.length - 1) {
|
|
|
carIndex.value = index
|
|
|
} else {
|