From 89dc66cccc2e4d3e6a84b25f2f176e6dc98b32d9 Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:16:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=B0=D0=BB=D0=B5=D1=80=D0=B5=D1=8F=20?= =?UTF-8?q?=D1=80=D0=B0=D1=81=D0=BF=D0=BE=D0=B7=D0=BD=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/news-list-news.vue | 24 +++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/front/src/components/news-list-news.vue b/src/front/src/components/news-list-news.vue index c12e6487d..228f262a6 100644 --- a/src/front/src/components/news-list-news.vue +++ b/src/front/src/components/news-list-news.vue @@ -181,12 +181,7 @@ {{x.title}} - - + { + axiosApiInstance.get(path).then(result => { + + newss.value= result.data + if (newss.value.result[0].gallery.length > 0) { + gallery.value = true + } + + + + }) + } + + loadNews(str) - const imgGallery = () => { - console.log(newss.value, 'ku'); - } const toggleIncrementLike = (news, scores) => { axiosApiInstance.post(`api/navigation/news/`, {news: news, scores: scores}).then(result => {