This commit is contained in:
van
2026-10-08 00:15:30 +08:00
parent e6caaa40f0
commit d2305882d2
+2 -1
View File
@@ -2235,7 +2235,8 @@ export default {
return
}
const encodedName = res.headers['download-filename']
const filename = encodedName ? decodeURIComponent(encodedName) : '返现表-新表头.xlsx'
const fallback = (file.name || '返现表.xlsx').replace(/\.(xlsx|xls)$/i, '') + '新.xlsx'
const filename = encodedName ? decodeURIComponent(encodedName) : fallback
this.$download.saveAs(blob, filename)
const encodedSummary = res.headers['x-convert-summary']
const summary = encodedSummary ? decodeURIComponent(encodedSummary) : '已生成新表'