thainv-dev: Fix UI

This commit is contained in:
nguyen van thai
2024-06-03 12:27:58 +07:00
parent c5887d911f
commit f22a16d42a
9 changed files with 70 additions and 143 deletions
+8 -4
View File
@@ -37,7 +37,7 @@ const loadPage = async (contentType: string | number) => {
watch(currentArticle, async () => {
let isContentType : string = '';
console.log(currentArticle.value.contentType, 'type')
console.log(currentArticle.value, 'type')
switch (currentArticle.value?.contentType) {
case 1:
isContentType = 'trang-doi-song'
@@ -55,14 +55,18 @@ watch(currentArticle, async () => {
break;
case 5:
if (currentArticle.value?.layoutType === 3) {
if (currentArticle.value?.layoutType === 4) {
isContentType = 'trang-chi-tiet-emagazine'
break;
}
else {
isContentType = 'trang-chi-tiet-emagazine'
if (currentArticle.value?.layoutType === 3) {
isContentType = 'trang-chi-tiet-infographics'
break;
}
// else {
// isContentType = 'trang-chi-tiet-emagazine'
// break;
// }
default:
isContentType = 'trang-chi-tiet-emagazine'
break;