diff --git a/src/views/system/jdorder/orderList.vue b/src/views/system/jdorder/orderList.vue index 087cd8b..8ce38c1 100644 --- a/src/views/system/jdorder/orderList.vue +++ b/src/views/system/jdorder/orderList.vue @@ -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) : '已生成新表'