From 173ec8ff461a192c85ac210f9d19dd6d376dfd99 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= <sxzz@sxzz.moe>
Date: Mon, 9 Jan 2023 16:48:39 +0800
Subject: [PATCH] refactor: replace route when switching posts and followers
 page

---
 components/account/AccountPostsFollowers.vue | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/components/account/AccountPostsFollowers.vue b/components/account/AccountPostsFollowers.vue
index aa3562fa..c004adb9 100644
--- a/components/account/AccountPostsFollowers.vue
+++ b/components/account/AccountPostsFollowers.vue
@@ -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"
     >