fix: 修改Excel导出 JS 脚本

This commit is contained in:
邹景立 2025-03-11 22:30:49 +08:00
parent f6b10b676d
commit 035ceabd1f

View File

@ -24,6 +24,7 @@ define(function () {
/*! 导出 Excel 文件 */
Excel.prototype.export = function (data, name, options) {
if (data === false || data === null) return this;
if (name.substring(0, -5).toLowerCase() !== '.xlsx') name += '.xlsx';
layui.excel.exportExcel(data, name, 'xlsx', options || this.options || {writeOpt: {bookSST: true}});
};