From 67c4c8d55ca8e616e92e9dbea9353f92041522a4 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 22 Jun 2022 12:16:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A5=E5=BF=97=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=BD=BF=E7=94=A8excel=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/dataease/service/sys/log/LogService.java | 2 +- frontend/src/views/system/log/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/dataease/service/sys/log/LogService.java b/backend/src/main/java/io/dataease/service/sys/log/LogService.java index 56eddd7a95..1e512eef1a 100644 --- a/backend/src/main/java/io/dataease/service/sys/log/LogService.java +++ b/backend/src/main/java/io/dataease/service/sys/log/LogService.java @@ -264,7 +264,7 @@ public class LogService { //文件名称 String fileName = "DataEase操作日志"; String encodeFileName = URLEncoder.encode(fileName, "UTF-8"); - response.setHeader("Content-disposition", "attachment;filename="+encodeFileName+".xlsx"); + response.setHeader("Content-disposition", "attachment;filename="+encodeFileName+".xls"); wb.write(outputStream); outputStream.flush(); outputStream.close(); diff --git a/frontend/src/views/system/log/index.vue b/frontend/src/views/system/log/index.vue index b18632acc5..76f62fbb8b 100644 --- a/frontend/src/views/system/log/index.vue +++ b/frontend/src/views/system/log/index.vue @@ -118,7 +118,7 @@ export default { const link = document.createElement('a') link.style.display = 'none' link.href = URL.createObjectURL(blob) - link.download = 'DataEase操作日志.xlsx' // 下载的文件名 + link.download = 'DataEase操作日志.xls' // 下载的文件名 document.body.appendChild(link) link.click() document.body.removeChild(link)