diff --git a/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java b/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java index 5f2bc8d82a..70d7b7e567 100644 --- a/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java +++ b/backend/src/main/java/io/dataease/service/panel/PanelGroupService.java @@ -517,7 +517,7 @@ public class PanelGroupService { } response.setContentType("application/vnd.ms-excel"); //文件名称 - response.setHeader("Content-disposition", "attachment;filename=" + request.getViewName() + ".xlsx"); + response.setHeader("Content-disposition", "attachment;filename=" + request.getViewName() + ".xls"); wb.write(outputStream); outputStream.flush(); outputStream.close(); diff --git a/frontend/src/components/canvas/custom-component/UserViewDialog.vue b/frontend/src/components/canvas/custom-component/UserViewDialog.vue index cfa6d6c40a..3b246ac51a 100644 --- a/frontend/src/components/canvas/custom-component/UserViewDialog.vue +++ b/frontend/src/components/canvas/custom-component/UserViewDialog.vue @@ -145,7 +145,7 @@ export default { const link = document.createElement('a') link.style.display = 'none' link.href = URL.createObjectURL(blob) - link.download = excelName + '.xlsx' // 下载的文件名 + link.download = excelName + '.xls' // 下载的文件名 document.body.appendChild(link) link.click() document.body.removeChild(link)