This commit is contained in:
@@ -4,11 +4,8 @@ import { useAsyncData } from '#app';
|
||||
const { locale } = useI18n();
|
||||
|
||||
const {data: posts} = useAsyncData('posts', async () =>
|
||||
await queryCollection(`blog_${locale.value}`).order('date', 'DESC').all()
|
||||
);
|
||||
|
||||
console.log(await queryCollection(`blog_${locale.value}`).order('date', 'DESC').all());
|
||||
|
||||
await queryCollection(`blog`).where('path', 'LIKE', `/blog/${locale.value}/%`).order('date', 'DESC').all()
|
||||
, {watch: [locale]});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user