generated from gitea_admin/default
page size 200
This commit is contained in:
@@ -2,6 +2,7 @@ export function useStrapi(endpoint, options = {}) {
|
||||
const queryString = computed(() => {
|
||||
const locale = unref(options.locale) ?? "fr-FR"
|
||||
const sort = unref(options.sort) ?? null
|
||||
const pageSize = unref(options.pageSize) ?? null
|
||||
const populate = unref(options.populate) ?? null
|
||||
const filters = unref(options.filters) ?? null
|
||||
|
||||
@@ -10,6 +11,9 @@ export function useStrapi(endpoint, options = {}) {
|
||||
if (sort) {
|
||||
query.set("sort[0]", sort)
|
||||
}
|
||||
if (typeof pageSize === "number") {
|
||||
query.set("pagination[pageSize]", String(pageSize))
|
||||
}
|
||||
if (populate && typeof populate === "object") {
|
||||
appendPopulate(query, populate)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user