forked from github/dataease
Merge pull request #2469 from dataease/pr@dev@fix_log_export
fix: 日志导出文件使用excel无法打开
This commit is contained in:
commit
559bcb1ebb
@ -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();
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user