From 6b94054b666b720f007d111787bd21fa6134a918 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Thu, 5 Jun 2025 11:48:23 +0800 Subject: [PATCH] =?UTF-8?q?sheet=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/excel-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); }