Skip to content

Commit

Permalink
fix: Curseforge page cannot query exceed 1k page
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed May 18, 2023
1 parent f69cc88 commit 40bf4d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xmcl-keystone-ui/src/composables/curseforge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export function useCurseforge(props: CurseforgeProps) {
watch(_data, (v) => {
if (v) {
data.projects = markRaw(v.data)
v.pagination.totalCount = Math.min(1_0000, v.pagination.totalCount)
data.totalCount = v.pagination.totalCount
data.pages = Math.ceil(v.pagination.totalCount / pageSize)
}
Expand Down

0 comments on commit 40bf4d3

Please sign in to comment.