From 148518d1ef45708b64b03aa35846fad826d19a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=91=D0=B0=D0=BD=D0=B4?= =?UTF-8?q?=D1=83=D1=80=D0=B8=D1=81=D1=82?= Date: Thu, 7 May 2026 21:18:11 +1000 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D0=B8=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/News_section/One_kard.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/News_section/One_kard.vue b/src/components/News_section/One_kard.vue index c3d207f..a5a34c8 100644 --- a/src/components/News_section/One_kard.vue +++ b/src/components/News_section/One_kard.vue @@ -212,6 +212,8 @@ const bilutene_b = async () => { const download = async () => { try { + // Обрезаем заголовок до 200 символов для совместимости с именем файла на сервере + const truncatedTitle = props.title.slice(0, 200); const rez = await axios.get( "https://allowlgroup.ru/api/8001/file_download", // "http://127.0.0.1:8001/file_download", @@ -219,7 +221,7 @@ const download = async () => { params: { // path: props.parsed_at.split(" ")[0].replace("-", "/"), path: props.article_date.split(" ")[0], - title: props.title, + title: truncatedTitle, }, responseType: "blob", }, @@ -230,7 +232,7 @@ const download = async () => { }), ); const link = document.createElement("a"); - let filename = props.title + ".docx"; + let filename = truncatedTitle + ".docx"; try { const disposition = rez.headers?.["content-disposition"]; if (disposition) {