minhnt-dev: oonly ssr fix

This commit is contained in:
MoreStrive
2024-06-24 16:46:59 +07:00
parent e151dda2ad
commit ab3419bd5f
7 changed files with 89 additions and 72 deletions
+2
View File
@@ -18,6 +18,8 @@ export const useArticleStore = defineStore("article", () => {
const article = await $fetch(`/api/articles/get-by-slug/${slug}`)
currentArticle.value = {}
currentArticle.value = article?.item
return currentArticle;
} catch (error: any) { }
}