Browse Source

fix: 12050 (#12109)

Co-authored-by: Xiaoba Yu <xb1823725853@gmail.com>
tags/0.15.0
XiaoBa 10 months ago
parent
commit
9c3cf7b69a
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      web/app/(commonLayout)/apps/hooks/useAppsQueryState.ts

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

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

Loading…
Cancel
Save