elk/pages/@[account].vue

20 lines
478 B
Vue
Raw Normal View History

2022-11-24 07:18:05 +01:00
<script setup lang="ts">
const params = useRoute().params
const accountName = $computed(() => params.account as string)
2022-11-25 10:50:49 +01:00
const account = await fetchAccountByName(accountName).catch(() => null)
2022-11-24 07:18:05 +01:00
</script>
<template>
<MainContent>
<template v-if="account">
<AccountHeader :account="account" border="b base" />
<NuxtPage />
</template>
<CommonNotFound v-else>
2022-11-25 10:50:49 +01:00
Account @{{ accountName }} not found
2022-11-24 07:18:05 +01:00
</CommonNotFound>
</MainContent>
</template>