mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
Fix routingu widoków i filtrowania scenerii
This commit is contained in:
+11
-10
@@ -1,12 +1,13 @@
|
||||
import { defineComponent } from "vue";
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
methods: {
|
||||
navigateToTrain(trainNo: number, driverName: string) {
|
||||
this.$router.push({
|
||||
name: 'TrainsView',
|
||||
query: { trainNo, driverName },
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
methods: {
|
||||
|
||||
navigateTo(path: string, query?: {}) {
|
||||
this.$router.push({
|
||||
path,
|
||||
query,
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user