From 8a1569431a92e3a949161487eb725800c9e4a532 Mon Sep 17 00:00:00 2001 From: Techit Thawiang Date: Sat, 30 Aug 2025 22:02:13 +0700 Subject: [PATCH] Fix Loading... title in blog post --- pages/posts/[...slug].vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pages/posts/[...slug].vue b/pages/posts/[...slug].vue index a5b1fb5..59aa302 100644 --- a/pages/posts/[...slug].vue +++ b/pages/posts/[...slug].vue @@ -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({