fix: the error of exporting long texts

This commit is contained in:
aaaaaajie 2025-04-19 09:39:36 +08:00
parent 5dd9f59f11
commit df0ee8da33

View File

@ -45,7 +45,7 @@ async function exportXlsxAction(ctx: Context, next: Next) {
const wb = await xlsxExporter.run(ctx);
ctx.body = XLSX.write(wb, { type: 'buffer', bookType: 'xlsx' });
ctx.body = XlsxExporter.xlsxSafeWrite(wb, { type: 'buffer', bookType: 'xlsx' });
ctx.set({
'Content-Type': 'application/octet-stream',