修复照片墙尾页加载bug
This commit is contained in:
@@ -211,10 +211,10 @@ function loadMoreItems(step) {
|
||||
}
|
||||
if(index >= res.data.files.length) { // 已到达当前分组列表的末尾
|
||||
groupid++
|
||||
let tempIndex = currentIndex
|
||||
currentIndex = 0
|
||||
if(index<currentIndex+step) { // 如果加载的数据数量不足步长
|
||||
// 则需要再加载下一个分组, 下一个分组需要加载的图片数量是剩余的步长
|
||||
let tempIndex = currentIndex
|
||||
currentIndex = 0
|
||||
loadMoreItems(tempIndex + step - index)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user