diff --git a/components/dynamic-page/page-component/templates/sections/articles/Default.vue b/components/dynamic-page/page-component/templates/sections/articles/Default.vue index ff7cbf4..52343ae 100644 --- a/components/dynamic-page/page-component/templates/sections/articles/Default.vue +++ b/components/dynamic-page/page-component/templates/sections/articles/Default.vue @@ -69,9 +69,6 @@ const handleRouteChange = async (query: any) => { } }; -onBeforeMount(() => { - if (route.query[`cpn_${_props.component?.id}`]) handleRouteChange(route.query); -}); const loadPage = async (page: number) => { let newDataQuery = ""; @@ -92,6 +89,8 @@ const loadPage = async (page: number) => { } }; +if (route.query[`cpn_${_props.component?.id}`]) handleRouteChange(route.query); + const handleNextPrev = (type: "+" | "-") => { if (listArticleByCategory.value?.length > 0) { if (type === "+") { @@ -128,25 +127,11 @@ const mapActivesToItems = (index: number) => {
- - - - - + {{ index + 1 }} - - - - - +