liwei19941102 1 год назад
Родитель
Сommit
cc72f6c0c6
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/components/Public/timeLine.vue

+ 3 - 1
src/components/Public/timeLine.vue

@@ -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 {