fix: many products in search
This commit is contained in:
@@ -210,6 +210,6 @@ onMounted(async () => {
|
|||||||
|
|
||||||
const response = await searchStore.fetchProducts('', 1, 3);
|
const response = await searchStore.fetchProducts('', 1, 3);
|
||||||
productsTotal.value = response?.meta?.total || 0;
|
productsTotal.value = response?.meta?.total || 0;
|
||||||
preloadedProducts.value = response.data;
|
preloadedProducts.value = response.data.splice(0, 3);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user