diff --git a/src/stores/cart.js b/src/stores/cart.js index e7e6a0f..a36bfb7 100644 --- a/src/stores/cart.js +++ b/src/stores/cart.js @@ -147,11 +147,10 @@ export const useCartStore = defineStore("cart", () => { routeId.value = id; try { const params = transformOptionsToParams(options); - const promises = [ - apiBack.get(`products/${+id - 1}`), - apiBack.get(`products/${+id}`), - apiBack.get(`products/${+id + 1}`), + apiBack.get(`products/${+id - 1}`, { params }), + apiBack.get(`products/${+id}`, { params }), + apiBack.get(`products/${+id + 1}`, { params }), ]; const results = await Promise.allSettled(promises); const [prev, current, next] = results.map((res) => {