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
5
app.vue
5
app.vue
|
@ -10,13 +10,16 @@ useHead({
|
|||
],
|
||||
})
|
||||
|
||||
// We want to trigger rerendering the page when account changes
|
||||
const key = computed(() => useMasto().instances.config.url || 'default')
|
||||
|
||||
// eslint-disable-next-line no-unused-expressions
|
||||
isDark.value
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NuxtLoadingIndicator color="repeating-linear-gradient(to right,var(--c-primary) 0%,var(--c-primary-active) 100%)" />
|
||||
<NuxtLayout>
|
||||
<NuxtLayout :key="key">
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
<TeleportTarget
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue