Element paging problem

clipboard.png

clipboard.png

I now request that the background data is 10 pages per page, and then show how many pages there are according to the length of list, but each time I request, that is, 10 pieces of current data, only one page is displayed here, there is no second or third page, and I have N pieces of data here. Find the solution

Mar.06,2021

your API only returns 10 pieces of data of the current page, not the length of the total data.


General request paging will send {current pages: 1, number of pages per page: 20}
result will get a standard like {total: 48, items: []}
.


it is certain that there is no correct total, returned in api. Postman is recommended to take a good look at the value returned by the API. Use whichever pair

Menu