Skip to content

Commit f76f4bd

Browse files
authored
fix(articles): dynamic useAsyncData key (#189)
1 parent 417beed commit f76f4bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/content/ArticlesList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const props = defineProps({
99
})
1010
1111
// @ts-ignore
12-
const { data: _articles } = await useAsyncData('articles', async () => await queryContent(withTrailingSlash(props.path)).sort({ date: -1 }).find())
12+
const { data: _articles } = await useAsyncData(props.path, async () => await queryContent(withTrailingSlash(props.path)).sort({ date: -1 }).find())
1313
1414
const articles = computed(() => _articles.value || [])
1515
</script>

0 commit comments

Comments
 (0)