From 803808842253d763577d5b518ec4a99223348318 Mon Sep 17 00:00:00 2001 From: Seven Of Aces Date: Wed, 1 Jan 2025 21:41:51 -0800 Subject: [PATCH] Fixed blog list --- components/PostCard.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/PostCard.vue b/components/PostCard.vue index 4e1df69..2800033 100644 --- a/components/PostCard.vue +++ b/components/PostCard.vue @@ -39,11 +39,13 @@ async function fetchData() { loading.value = true try { - data.value = await (await fetch(url.value)).text() + data.value = await (await fetch("/blog" + url.value)).text() + console.log(url.value) const processed = fm(data.value) background.value = processed.attributes.background title.value = processed.attributes.title description.value = processed.attributes.description + console.log(JSON.stringify(processed.attributes.date)) date.value = processed.attributes.date tags.value = processed.attributes.tags