feat: basic account header (#1)

This commit is contained in:
patak 2022-11-15 04:26:52 +01:00 committed by GitHub
parent c7ae7d5a1c
commit 6755ed6f94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 83 additions and 1 deletions

View file

@ -4,10 +4,12 @@ const props = defineProps<{
}>()
const params = useRoute().params
const masto = await useMasto()
const { data: account } = await useAsyncData('account', () => masto.accounts.lookup({ acct: params.user as string }))
</script>
<template>
<div>
{{ params }}
<AccountHeader :account="account" />
</div>
</template>