Files
better-mreso/app/app.vue
T
2026-07-07 21:06:04 +02:00

31 lines
562 B
Vue

<template>
<NuxtLayout>
<NuxtRouteAnnouncer />
<NuxtPage />
</NuxtLayout>
</template>
<script setup lang="ts">
const router = useRoute();
const store = useMresoStore();
watchEffect(() => {
if (router.params.line_id === undefined) {
store.selectedRouteIds = [];
}
if (typeof router.params.line_id !== "string") {
store.selectedRouteIds = [];
}
store.selectedRouteIds = [router.params.line_id];
});
</script>
<style lang="css">
body,
#main,
#__nuxt,
main {
height: 100vh;
margin: 0;
}
</style>