From c5bff6e11892837532718c1f55dd9dff010c38da Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Thu, 14 Dec 2023 16:37:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B3=D0=BB=D0=B0=D0=B2=D0=BD=D1=83=D1=8E=20?= =?UTF-8?q?=D0=BA=D0=B0=D1=80=D1=82=D0=B8=D0=BD=D0=BA=D1=83=20=D0=BD=D0=B0?= =?UTF-8?q?=D1=87=D0=B0=D0=BB=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/news-full.vue | 64 +++++++++++++------------- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/src/front/src/components/news-full.vue b/src/front/src/components/news-full.vue index 773788b27..1ae7a6ff0 100644 --- a/src/front/src/components/news-full.vue +++ b/src/front/src/components/news-full.vue @@ -335,17 +335,7 @@ class="flex-column " > - - - - - + + :disabled="newsFull.gallery.length==1" + density="compact" + variant="text" + icon="mdi-chevron-left" + @click = "indximg !=0? indximg -=1:indximg=newsFull.gallery.length-1" + /> @@ -390,11 +382,12 @@ @@ -543,14 +536,23 @@ export default { } const downloadimg = (idimg) => { + console.log(burl+idimg) + const link = document.createElement('a'); + + // link.href = burl+idimg + // link.setAttribute('download', 'file.jpg'); //or any other extension + // document.body.appendChild(link); + // link.click(); - let link = document.createElement("a") + // let link = document.createElement("a") - link.href = burl+idimg - link.download ='img.jpeg' - link.click() - console.log(burl, idimg,'22222222222222222'); - link.remove() + // link.href = burl+idimg + // link.setAttribute("download", "image.jpeg"); + // document.body.appendChild(link); + // link.download ='img.jpeg' + // link.download('img.jpeg') + // console.log(burl+idimg,'22222222222222222'); + // link.remove() }