Skip to content

Commit 06ddb17

Browse files
committed
fix empty page bug
1 parent 945f80c commit 06ddb17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/scripts/listRender.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function listRender (type, path, url, tagList, difficultyList, list, meta) {
5555
getPath(path, pageNow),
5656
'<!DOCTYPE html>' + render({
5757
type,
58-
list: list.slice(i, PAGE_SIZE),
58+
list: list.slice(i, i + PAGE_SIZE),
5959
paging: {
6060
pageNow: pageNow,
6161
pageSize: PAGE_SIZE,

0 commit comments

Comments
 (0)