Skip to content

Commit

Permalink
Try with $fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertBroersma committed Nov 27, 2023
1 parent 5a20b2d commit 69259c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ console.log({ baseURL })
let catalogPath = `${baseURL}/catalog.json`
let { data: catalogJson } = await useFetch<CatalogType>(catalogPath)
let { data: catalogJson } = await useAsyncData<CatalogType>(() =>
$fetch(catalogPath),
)
let catalog = catalogJson.value
Expand Down

0 comments on commit 69259c5

Please sign in to comment.