feat: add not found for user pages

This commit is contained in:
三咲智子 2022-11-24 01:16:10 +08:00
parent ae6552fee0
commit a473cc2de5
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
5 changed files with 46 additions and 22 deletions

View file

@ -19,9 +19,15 @@ const paginator = $computed(() => {
</script>
<template>
<div>
<AccountHeader :account="account" />
</div>
<CommonTabs v-model="tab" :options="tabNames" />
<TimelinePaginator :key="tab" :paginator="paginator" />
<template v-if="account">
<div>
<AccountHeader :account="account" />
</div>
<CommonTabs v-model="tab" :options="tabNames" />
<TimelinePaginator :key="tab" :paginator="paginator" />
</template>
<CommonNotFound v-else>
Account @{{ params.user }} not found
</CommonNotFound>
</template>