Skip to content

Commit 2ff9f9d

Browse files
committed
Update products.vue
1 parent 5c58bfa commit 2ff9f9d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pages/products.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
<p>Filter options will go here.</p>
88
</div>
99
<div class="w-full md:w-3/4 p-4">
10-
<ProductsShowAll />
10+
<ProductsShowAll :products="data.products.nodes" />
1111
</div>
1212
</div>
1313
</div>
1414
</template>
1515

1616
<script setup>
17+
import FETCH_ALL_PRODUCTS_QUERY from "@/apollo/queries/FETCH_ALL_PRODUCTS_QUERY.gql";
18+
19+
const { data } = await useAsyncQuery(FETCH_ALL_PRODUCTS_QUERY);
20+
1721
useHead({
1822
title: "Products",
1923
titleTemplate: "%s - Nuxt 3 Woocommerce",

0 commit comments

Comments
 (0)