Fix
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user