feat: add title for pages

This commit is contained in:
三咲智子 2022-11-25 19:48:48 +08:00
parent dfdf95da61
commit f54e135848
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
10 changed files with 39 additions and 2 deletions

View file

@ -3,6 +3,12 @@ const params = useRoute().params
const accountName = $computed(() => params.account as string)
const account = await fetchAccountByName(accountName).catch(() => null)
if (account) {
useHead({
title: `${account.displayName} (@${account.acct})`,
})
}
</script>
<template>