1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-23 14:46:08 +09:00

refactor: replace route when switching posts and followers page

This commit is contained in:
三咲智子 2023-01-09 16:48:39 +08:00
parent 5c8faca620
commit 173ec8ff46
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E

View File

@ -18,6 +18,7 @@ const followersCountSR = $computed(() => forSR(props.account.followersCount))
<div flex gap-5>
<NuxtLink
:to="getAccountRoute(account)"
replace
text-secondary
exact-active-class="text-primary"
:class="statusesCountSR ? 'flex gap-x-1' : null"
@ -34,6 +35,7 @@ const followersCountSR = $computed(() => forSR(props.account.followersCount))
</NuxtLink>
<NuxtLink
:to="getAccountFollowingRoute(account)"
replace
text-secondary exact-active-class="text-primary"
:class="followingCountSR ? 'flex gap-x-1' : null"
>
@ -49,6 +51,7 @@ const followersCountSR = $computed(() => forSR(props.account.followersCount))
</NuxtLink>
<NuxtLink
:to="getAccountFollowersRoute(account)"
replace
text-secondary exact-active-class="text-primary"
:class="followersCountSR ? 'flex gap-x-1' : null"
>