diff --git a/components/account/AccountHoverWrapper.vue b/components/account/AccountHoverWrapper.vue index fcfde284bc..3be7eaa749 100644 --- a/components/account/AccountHoverWrapper.vue +++ b/components/account/AccountHoverWrapper.vue @@ -11,7 +11,7 @@ const props = defineProps<{ disabled?: boolean }>() -const account = computed(() => props.account || (props.handle ? useAccountByHandle(props.handle!) : undefined)) +const account = computed(() => props.account || (props.handle ? useAccountByHandle(props.handle!)?.value : undefined)) const userSettings = useUserSettings() diff --git a/components/account/AccountTabs.vue b/components/account/AccountTabs.vue index 38ff52a7ae..6c48a233c2 100644 --- a/components/account/AccountTabs.vue +++ b/components/account/AccountTabs.vue @@ -4,15 +4,15 @@ import type { CommonRouteTabOption } from '../common/CommonRouteTabs.vue' const { t } = useI18n() const route = useRoute() -const server = $(computedEager(() => route.params.server as string)) -const account = $(computedEager(() => route.params.account as string)) +const server = computed(() => route.params.server as string) +const account = computed(() => route.params.account as string) -const tabs = $computed(() => [ +const tabs = computed(() => [ { name: 'account-index', to: { name: 'account-index', - params: { server, account }, + params: { server: server.value, account: account.value }, }, display: t('tab.posts'), icon: 'i-ri:file-list-2-line', @@ -21,7 +21,7 @@ const tabs = $computed(() => [ name: 'account-replies', to: { name: 'account-replies', - params: { server, account }, + params: { server: server.value, account: account.value }, }, display: t('tab.posts_with_replies'), icon: 'i-ri:chat-1-line', @@ -30,7 +30,7 @@ const tabs = $computed(() => [ name: 'account-media', to: { name: 'account-media', - params: { server, account }, + params: { server: server.value, account: account.value }, }, display: t('tab.media'), icon: 'i-ri:camera-2-line', diff --git a/components/common/CommonPaginator.vue b/components/common/CommonPaginator.vue index 72565d5b53..1e572a3c84 100644 --- a/components/common/CommonPaginator.vue +++ b/components/common/CommonPaginator.vue @@ -94,8 +94,8 @@ defineExpose({ createEntry, removeEntry, updateEntry }) -