mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 05:28:12 +00:00
fix: incorrect arrival speed at first element
This commit is contained in:
@@ -73,12 +73,12 @@ const computedTimetableRows = computed(() => {
|
|||||||
abbrevs = [] as string[];
|
abbrevs = [] as string[];
|
||||||
|
|
||||||
if (currentPath.departureLineData) {
|
if (currentPath.departureLineData) {
|
||||||
arrivalSpeed = currentPath.departureLineData.routeSpeed;
|
|
||||||
arrivalTracks = currentPath.departureLineData.routeTracks;
|
|
||||||
|
|
||||||
departureSpeed = currentPath.departureLineData.routeSpeed;
|
departureSpeed = currentPath.departureLineData.routeSpeed;
|
||||||
departureTracks = currentPath.departureLineData.routeTracks;
|
departureTracks = currentPath.departureLineData.routeTracks;
|
||||||
|
|
||||||
|
arrivalSpeed = currentPath.departureLineData.routeSpeed;
|
||||||
|
arrivalTracks = currentPath.departureLineData.routeTracks;
|
||||||
|
|
||||||
realLineNo = currentPath.departureLineData?.realLineNo ?? 0;
|
realLineNo = currentPath.departureLineData?.realLineNo ?? 0;
|
||||||
abbrevs = getAbbrevs(currentPath.departureLineData);
|
abbrevs = getAbbrevs(currentPath.departureLineData);
|
||||||
}
|
}
|
||||||
@@ -118,6 +118,11 @@ const computedTimetableRows = computed(() => {
|
|||||||
|
|
||||||
correctedDepartureTracks = internalRouteInfo.routeTracks;
|
correctedDepartureTracks = internalRouteInfo.routeTracks;
|
||||||
departureTracks = internalRouteInfo.routeTracks;
|
departureTracks = internalRouteInfo.routeTracks;
|
||||||
|
|
||||||
|
if (stopRows.length == 0) {
|
||||||
|
arrivalSpeed = departureSpeed;
|
||||||
|
arrivalTracks = departureTracks;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let pointAbbrevs = [];
|
let pointAbbrevs = [];
|
||||||
@@ -152,7 +157,6 @@ const computedTimetableRows = computed(() => {
|
|||||||
stockMass,
|
stockMass,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// console.debug(stop.stopNameRAW, stop.departureLine);
|
// console.debug(stop.stopNameRAW, stop.departureLine);
|
||||||
|
|
||||||
arrivalKm = stop.stopDistance;
|
arrivalKm = stop.stopDistance;
|
||||||
|
|||||||
Reference in New Issue
Block a user