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