feat: add title for pages
This commit is contained in:
parent
dfdf95da61
commit
f54e135848
10 changed files with 39 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue