File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 33
33
</template >
34
34
35
35
<script setup>
36
- import FETCH_ALL_CATEGORIES_QUERY from " @/apollo/queries/FETCH_ALL_CATEGORIES_QUERY.gql" ;
37
-
38
- const variables = { limit: 99 };
39
- const { data } = await useAsyncQuery (FETCH_ALL_CATEGORIES_QUERY , variables);
36
+ const props = defineProps ({
37
+ data: {
38
+ type: Object ,
39
+ required: true
40
+ }
41
+ });
40
42
</script >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" flex justify-center items-center" >
3
- <CategoryShowAll />
3
+ <CategoryShowAll :data = " data " />
4
4
</div >
5
5
</template >
6
6
7
7
<script setup>
8
+ import FETCH_ALL_CATEGORIES_QUERY from " @/apollo/queries/FETCH_ALL_CATEGORIES_QUERY.gql" ;
9
+ const variables = { limit: 99 };
10
+ const { data } = await useAsyncQuery (FETCH_ALL_CATEGORIES_QUERY , variables);
11
+
8
12
useHead ({
9
13
title: " Categories" ,
10
14
titleTemplate: " %s - Nuxt 3 Woocommerce" ,
You can’t perform that action at this time.
0 commit comments