Nawigacja

This commit is contained in:
2022-12-20 21:51:40 +01:00
parent e478c510b2
commit 50100eb2f9
2 changed files with 11 additions and 9 deletions
+2 -3
View File
@@ -136,11 +136,10 @@ export default defineComponent({
// Handle route updates for route-links
beforeRouteUpdate(to, from) {
const timetableId = to.query['timetableId']?.toString();
const { timetableId, driverName } = to.query;
if (!timetableId) return;
if (timetableId) this.searchersValues['search-train'] = `#${timetableId}`;
this.searchersValues['search-train'] = `#${timetableId}`;
this.searchHistory();
},