This commit is contained in:
nguyen van thai
2024-07-16 11:37:38 +07:00
parent 5f72a107ce
commit 174a596db9
4 changed files with 146 additions and 3 deletions
+2 -1
View File
@@ -20,8 +20,9 @@ import { useArticleStore } from '~/stores/articles';
const loadPage = async () => {
const article = await store.article.getArticleBySlug(String(route.params.slug));
console.log(article?.value, 'article')
let isContentType
switch (article.value?.contentType) {
switch (article?.value?.contentType) {
case 1:
isContentType = 'trang-chi-tiet';
break;