Skip to content

Commit

Permalink
fix:weeklyPage进行搜索后,下方页面数仍显示23页的bug (#2082)
Browse files Browse the repository at this point in the history
* "CleanUp: CoursePage"

* CleanUp: ShareSite

* Weekly界面浏览模式/编辑模式仅管理员可见

* feat: hide Browse/Edit mode bar

* feat: Roughly align with the cover of Weekly page.

* fix: WeeklyPage修复搜索后页面仍然显示23页的小BUG

---------

Co-authored-by: Yichen You <[email protected]>
Co-authored-by: zzdhyb <[email protected]>
  • Loading branch information
3 people authored Nov 10, 2024
1 parent 69d9f56 commit 2597546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/ShareSite/WeeklyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ const WeeklyPage: React.FC<PageProps> = ({ mode, user }) => {
sm: 2,
md: 3,
lg: 4,
xl: 4,
xl: 5,
xxl: 6,
}}
dataSource={filterParamList?.slice(
Expand Down Expand Up @@ -355,7 +355,7 @@ const WeeklyPage: React.FC<PageProps> = ({ mode, user }) => {
<Pagination
showQuickJumper
current={page}
total={weekly_data?.weekly.length}
total={filterParamList.length}
defaultPageSize={12}
showSizeChanger={true}
pageSizeOptions={pageSizes}
Expand Down

0 comments on commit 2597546

Please sign in to comment.