Jelajahi Sumber

fix: 12050 (#12109)

Co-authored-by: Xiaoba Yu <xb1823725853@gmail.com>
XiaoBa 3 bulan lalu
induk
melakukan
9c3cf7b69a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      web/app/(commonLayout)/apps/hooks/useAppsQueryState.ts

+ 1 - 1
web/app/(commonLayout)/apps/hooks/useAppsQueryState.ts

@@ -37,7 +37,7 @@ function useAppsQueryState() {
   const syncSearchParams = useCallback((params: URLSearchParams) => {
     const search = params.toString()
     const query = search ? `?${search}` : ''
-    router.push(`${pathname}${query}`)
+    router.push(`${pathname}${query}`, { scroll: false })
   }, [router, pathname])
 
   // Update the URL search string whenever the query changes.