Merge branch 'main' of http://work.gct.com.vn/minhnt/NSG_PORTAL_V2 into thainv-dev
This commit is contained in:
@@ -26,7 +26,7 @@ watch(currentPage, () => {
|
|||||||
}, { deep: true })
|
}, { deep: true })
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
title: currentPage.value.title || ''
|
title: () => currentPage.value.title || ''
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export const useDynamicPageStore = defineStore("dynamicPageStore", () => {
|
|||||||
|
|
||||||
sectionPublished.value = currentPage.value.sections && currentPage.value.sections.filter(
|
sectionPublished.value = currentPage.value.sections && currentPage.value.sections.filter(
|
||||||
(section: any) => section.isPublished && !contentArr.flat().some((_section: any) => _section && _section.data && _section.type === "section" && section.id === _section.data)
|
(section: any) => section.isPublished && !contentArr.flat().some((_section: any) => _section && _section.data && _section.type === "section" && section.id === _section.data)
|
||||||
);
|
).sort((a: any, b: any) => a.order - b.order);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user