refactor: replace route when switching posts and followers page

zio/stable
三咲智子 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
1 changed files with 3 additions and 0 deletions

View File

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