refactor: replace route when switching posts and followers page

pull/893/head
三咲智子 2023-01-09 16:48:39 +08:00
rodzic 5c8faca620
commit 173ec8ff46
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 69992F2250DFD93E
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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"
>