1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 09:21:54 +00:00

sysadmin reconstruct links page (#4153)

* sysadmin reconstruct links page

* optimize code

* optimize code
This commit is contained in:
Leo
2019-10-19 11:21:49 +08:00
committed by Daniel Pan
parent 0fd1fad77c
commit 36a734d9b4
8 changed files with 513 additions and 11 deletions

View File

@@ -1192,6 +1192,12 @@ export const Utils = {
result = '00:' + result;
}
return result;
},
hasNextPage(curPage, perPage, totalCount) {
// when curPage * perPage >= totalCount, do not have next page.
// so hasNextPage = true, when curPage * perPage < totalCount
return curPage * perPage < totalCount;
}
};