From d7a84f7e461a284ddab8fb088c42e844a3c3b4a0 Mon Sep 17 00:00:00 2001 From: tt <1301725380@qq.com> Date: Tue, 22 Oct 2024 11:40:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=A7=A3=E5=86=B3pdf=E6=89=93=E4=B8=8D?= =?UTF-8?q?=E5=BC=80=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/views/proManagement/contract.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/src/views/proManagement/contract.vue b/admin/src/views/proManagement/contract.vue index 16a6cdda..bb7c32f5 100644 --- a/admin/src/views/proManagement/contract.vue +++ b/admin/src/views/proManagement/contract.vue @@ -126,7 +126,7 @@ export default { const link = document.createElement("a"); const objectUrl = URL.createObjectURL(blob); link.href = objectUrl; - link.download = url.split("/").pop(); // Extract filename from URL + link.download = fileUrl.split("/").pop(); // Extract filename from URL document.body.appendChild(link); link.click(); document.body.removeChild(link);