fix: 12050 (#12109)

Co-authored-by: Xiaoba Yu <xb1823725853@gmail.com>
This commit is contained in:
XiaoBa 2024-12-26 23:32:54 +08:00 committed by GitHub
parent be7877f526
commit 9c3cf7b69a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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