chore(scenery): make return button redirect to Sceneries tab

This commit is contained in:
2026-04-27 13:56:29 +02:00
parent 21725d4019
commit c4decd1003
3 changed files with 3 additions and 9 deletions
+1 -7
View File
@@ -24,12 +24,6 @@ import { useRoute, useRouter } from 'vue-router';
const route = useRoute();
const router = useRouter();
const prevPath = ref('/');
onMounted(() => {
prevPath.value = (route.meta['prevPath'] as string) ?? '/';
});
defineProps({
station: {
type: Object as PropType<Station>
@@ -46,7 +40,7 @@ defineProps({
});
function onReturnButtonClick() {
router.push(prevPath.value);
router.push('/');
}
</script>