31 lines
562 B
Vue
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>
|