From 5c7e3d5e2ebe930d0458e83b172efc10ccb360bd Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 1 Feb 2024 12:58:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BD=D0=BE=D0=B2=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B5=D0=B9=20=D1=81=20=D0=BF=D0=B0=D0=B3=D0=B8=D0=BD=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/news-crossroad.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/front/src/components/news-crossroad.vue b/src/front/src/components/news-crossroad.vue index a2a2f0f08..137bb8632 100644 --- a/src/front/src/components/news-crossroad.vue +++ b/src/front/src/components/news-crossroad.vue @@ -21,7 +21,7 @@ @@ -65,14 +65,16 @@ export default { const page = ref(1) const countpage = ref(8) const route = useRoute() + const visiblePage = ref(0) const loadNewsAll = () => { axiosApiInstance.get( `api/navigation/newscrossroad/?name=${route.path}&page=${page.value-1}&countpage=${countpage.value}`).then(result => { newsAll.value= result.data.result countetnews.value = result.data.countpage/countpage.value + visiblePage.value = countetnews.value <= 1 ? 1 : countetnews.value+1 } ) - } + } loadNewsAll() @@ -81,6 +83,7 @@ export default { countetnews, page, countpage, + visiblePage, loadNewsAll, } }