minhnt-dev: get by slug

This commit is contained in:
MoreStrive
2024-05-31 15:04:22 +07:00
parent 7b01ce6170
commit 892bddde2f
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ const store = reactive({
(async () => {
try {
store.article.getArticleById(route.params.slug);
store.article.getArticleBySlug(route.params.slug);
} catch (error) {
console.error("Error fetching data:", error);
}