Fix service list page index error

This commit is contained in:
nkorange 2018-10-15 20:20:59 +08:00
parent 216007ff97
commit 2be5171cf2

View File

@ -61,7 +61,7 @@ public class CatalogController {
String keyword = BaseServlet.optional(request, "keyword", StringUtils.EMPTY);
List<Domain> doms = new ArrayList<>();
int total = domainsManager.getPagedDom(page, pageSize, keyword, doms);
int total = domainsManager.getPagedDom(page - 1, pageSize, keyword, doms);
if (CollectionUtils.isEmpty(doms)) {
result.put("serviceList", Collections.emptyList());