mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Fix routingu widoków i filtrowania scenerii
This commit is contained in:
@@ -22,8 +22,7 @@
|
||||
v-if="!timetableOnly && store.region.id == 'eu' && stationInfo"
|
||||
class="history-btn btn btn--image"
|
||||
@click="
|
||||
navigateTo('/journal', {
|
||||
view: 'dispatchers',
|
||||
navigateTo('/journal/dispatchers', {
|
||||
sceneryName: stationInfo?.name,
|
||||
})
|
||||
"
|
||||
@@ -46,14 +45,17 @@ import SceneryHeader from '@/components/SceneryView/SceneryHeader.vue';
|
||||
|
||||
import ActionButton from '@/components/Global/ActionButton.vue';
|
||||
|
||||
import { computed, defineComponent, reactive } from '@vue/runtime-core';
|
||||
import { computed, defineComponent } from '@vue/runtime-core';
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
import { useStore } from '@/store/store';
|
||||
import routerMixin from '@/mixins/routerMixin';
|
||||
|
||||
export default defineComponent({
|
||||
components: { SceneryInfo, SceneryTimetable, ActionButton, SceneryHeader },
|
||||
|
||||
mixins: [routerMixin],
|
||||
|
||||
data: () => ({
|
||||
icons: {
|
||||
history: require('@/assets/icon-history.svg'),
|
||||
@@ -92,13 +94,6 @@ export default defineComponent({
|
||||
setCardViewMode(mode: string) {
|
||||
this.viewMode = mode;
|
||||
},
|
||||
|
||||
navigateTo(path: string, query?: {}) {
|
||||
this.$router.push({
|
||||
path,
|
||||
query,
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user