Skip to content

Commit

Permalink
refactor: replace route when switching posts and followers page
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jan 9, 2023
1 parent 5c8faca commit 173ec8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/account/AccountPostsFollowers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
>
Expand All @@ -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"
>
Expand Down

0 comments on commit 173ec8f

Please sign in to comment.