fix:#25 fixed router bug

This commit is contained in:
Elmar Kresse
2024-01-18 21:54:29 +01:00
parent 5102d3bea4
commit 6b695102d3
5 changed files with 67 additions and 35 deletions

View File

@ -33,9 +33,11 @@ window.addEventListener("resize", updateMobile);
<template>
<MenuBar />
<RouterView v-slot="{ Component }">
<RouterView v-slot="{ Component, route }">
<transition name="scale" mode="out-in">
<component :is="Component" class="origin-near-top"/>
<div :key="route.name ?? ''">
<component :is="Component" class="origin-near-top" />
</div>
</transition>
</RouterView>
<!-- show CalendarPreview but only on specific router views -->