From df0ee8da339541913b760900620609aae4fa929c Mon Sep 17 00:00:00 2001 From: aaaaaajie Date: Sat, 19 Apr 2025 09:39:36 +0800 Subject: [PATCH] fix: the error of exporting long texts --- .../plugin-action-export/src/server/actions/export-xlsx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts b/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts index 0325e82155..8a14bb79c3 100644 --- a/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts +++ b/packages/plugins/@nocobase/plugin-action-export/src/server/actions/export-xlsx.ts @@ -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',