refactor: sync masto (#1121)

This commit is contained in:
三咲智子 Kevin Deng 2023-01-15 16:38:02 +08:00 committed by GitHub
parent eb1f769e32
commit 4422a57f49
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
81 changed files with 397 additions and 367 deletions

View file

@ -6,6 +6,11 @@ definePageMeta({
alias: ['/signin/callback'],
})
const route = useRoute()
const router = useRouter()
if (process.client && route.path === '/signin/callback')
router.push('/home')
const { t } = useI18n()
useHeadFixed({
title: () => t('nav.home'),
@ -21,6 +26,6 @@ useHeadFixed({
</NuxtLink>
</template>
<TimelineHome v-if="isMastoInitialised" />
<TimelineHome v-if="isHydrated" />
</MainContent>
</template>