return;
let result;
return this.$apiSDK.catalog
.getCollectionItemsBySlug({
slug: slug,
image_size: "med",
})
.then((res) => {
console.log(res.items);
this.obj[slug]=res?.items || [];
return this.obj;
});
async getProducts(slug) { if (!slug) return; const res = await this.$apiSDK.catalog .getCollectionItemsBySlug({ slug, image_size: "med", }); return res?.items || []; }
Обсуждают сегодня