refactor: replace route when switching posts and followers page
parent
5c8faca620
commit
173ec8ff46
|
@ -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"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue