Authored by yyq

pager

... ... @@ -64,7 +64,7 @@ exports.setPager = (total, params)=>{
for (i = 1; i <= len; i++) {
let p = currentPage + i + 2;
if (i > total) {
if (p > total) {
break;
}
... ... @@ -78,7 +78,7 @@ exports.setPager = (total, params)=>{
for (i = 1; i <= len; i++) {
let p = currentPage - i - 2;
if (i < 1) {
if (p < 1) {
break;
}
... ...