Skip to content

Commit ab1be0b

Browse files
pythonHuangclaude
andcommitted
fix: 报表Excel导出文件后缀错误-后端生成的是真正的xlsx格式,下载文件名由.xls改为.xlsx(消除格式与扩展名不匹配/被识别为文本的问题)
Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent 119c22b commit ab1be0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎JuggleNet6.Frontend/src/views/report/ReportList.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async function doExportPdf(row: any) {
118118
119119
async function doExportExcel(row: any) {
120120
const res: any = await request.post('/report/export-excel', { id: row.id, params: {} }, { responseType: 'blob' })
121-
downloadBlob(res.data, `${row.name}.xls`)
121+
downloadBlob(res.data, `${row.name}.xlsx`)
122122
}
123123
124124
/** 打印:取预览 HTML 写入新窗口并触发浏览器打印 */

0 commit comments

Comments
 (0)