mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Prevent infinite loop
This commit is contained in:
parent
e8d9e711dd
commit
f2a1525d06
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user