Pagination

We will automatically manage pagination information for you, such as the current page number, number of items per page, total number of items, etc. You only need to use our provided changeCurrent() and changePageSize() to easily manage the pagination data.

Note: We will inject the parameters required for paging in the first position of the params array.

For more available configurations, please refer to Pagination API

Usage

import { usePagination } from 'vue-request';

Example

Last Updated: 7/6/2023, 3:23:08 AM
Contributors: John