feat: avoid reloading the page when changing accounts (#180)
This commit is contained in:
parent
e2000321c5
commit
729b36a606
6 changed files with 56 additions and 56 deletions
|
@ -1,8 +1,14 @@
|
|||
<script setup lang="ts">
|
||||
definePageMeta({
|
||||
middleware: 'auth',
|
||||
alias: ['/signin/callback'],
|
||||
})
|
||||
|
||||
if (useRoute().path === '/signin/callback') {
|
||||
// This only cleans up the URL; page content should stay the same
|
||||
useRouter().push('/home')
|
||||
}
|
||||
|
||||
const paginator = useMasto().timelines.getHomeIterable()
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue