diff --git a/src/utils/excel-util.js b/src/utils/excel-util.js index 93e0294..b266908 100644 --- a/src/utils/excel-util.js +++ b/src/utils/excel-util.js @@ -149,7 +149,7 @@ let export2Excel = opt => { } // console.log(ws); const wb = XLSX.utils.book_new(); - XLSX.utils.book_append_sheet(wb, ws, "sheet1"); + XLSX.utils.book_append_sheet(wb, ws, options.fileName.replace(/\.xlsx/, "")); XLSX.writeFile(wb, options.fileName); }); }