mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: the error of exporting long texts
This commit is contained in:
parent
5dd9f59f11
commit
df0ee8da33
@ -45,7 +45,7 @@ async function exportXlsxAction(ctx: Context, next: Next) {
|
|||||||
|
|
||||||
const wb = await xlsxExporter.run(ctx);
|
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({
|
ctx.set({
|
||||||
'Content-Type': 'application/octet-stream',
|
'Content-Type': 'application/octet-stream',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user