Prevent infinite loop

This commit is contained in:
the1812 2025-05-28 09:32:41 +08:00
parent e8d9e711dd
commit f2a1525d06

View File

@ -210,6 +210,11 @@ export const responsiveGetPages = <T = any>(config: {
if (page === 1) {
resolveResponsive(result)
}
if (list.length === 0) {
resolveTotal(result)
break
}
page++
if (total === Infinity) {
total = getTotal(json)