mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-31 14:09:42 +07:00
🐛 fix: slove discover pagination router (#10294)
fix: slove discover pagination router
This commit is contained in:
@@ -41,7 +41,7 @@ const Pagination = memo<PaginationProps>(({ tab, currentPage, total, pageSize })
|
||||
const handlePageChange = (newPage: number) => {
|
||||
const searchParams = new URLSearchParams(location.search);
|
||||
searchParams.set('page', String(newPage));
|
||||
navigate(`/${tab}?${searchParams.toString()}`);
|
||||
navigate(`/discover/${tab}?${searchParams.toString()}`);
|
||||
|
||||
const scrollableElement = document?.querySelector(`#${SCROLL_PARENT_ID}`);
|
||||
if (!scrollableElement) return;
|
||||
|
||||
Reference in New Issue
Block a user