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