Fix Loading... title in blog post

This commit is contained in:
2025-08-30 22:02:13 +07:00
parent 963a09bf7a
commit 8a1569431a
+5 -3
View File
@@ -22,9 +22,11 @@ const config = useRuntimeConfig();
const baseUrl = config.public.baseUrl
const route = useRoute()
const { data: post } = await useAsyncData(route.path, () => {
return queryCollection('posts').path(route.path).first()
})
// const { data: post } = await useAsyncData(route.path, () => {
// return queryCollection('posts').path(route.path).first()
// })
const { data: post } = await useAsyncData(() => queryCollection('posts').path(route.path).first())
const ogUrl = config.public.baseUrl + route.path
useSeoMeta({