1
This commit is contained in:
@@ -2235,7 +2235,8 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
const encodedName = res.headers['download-filename']
|
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)
|
this.$download.saveAs(blob, filename)
|
||||||
const encodedSummary = res.headers['x-convert-summary']
|
const encodedSummary = res.headers['x-convert-summary']
|
||||||
const summary = encodedSummary ? decodeURIComponent(encodedSummary) : '已生成新表'
|
const summary = encodedSummary ? decodeURIComponent(encodedSummary) : '已生成新表'
|
||||||
|
|||||||
Reference in New Issue
Block a user