From fa1d3650dde7da2a0ae2e2efc2c49165cb5ec4e8 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Wed, 3 Jan 2024 13:24:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8B=E8=BD=BD=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/realTimeMonitor/components/carouselChart.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/realTimeMonitor/components/carouselChart.vue b/src/views/realTimeMonitor/components/carouselChart.vue index 2b8be01..6a97379 100644 --- a/src/views/realTimeMonitor/components/carouselChart.vue +++ b/src/views/realTimeMonitor/components/carouselChart.vue @@ -225,7 +225,9 @@ export default { const url = window.URL.createObjectURL(blob); const link = document.createElement("a"); link.href = url; - link.download = name; + console.log(name); + link.download = name.split("/").pop(); + document.body.appendChild(link); link.click(); document.body.removeChild(link);