fix(plugin-export): sheet name cannot contain : \ / ? * [ ]

This commit is contained in:
chenos 2023-03-28 23:56:04 +08:00
parent e566d56c2d
commit 64b1ee28fd

View File

@ -27,7 +27,7 @@ export async function exportXlsx(ctx: Context, next: Next) {
const { rows, ranges } = await render({ columns, fields: collectionFields, data }, ctx);
ctx.body = xlsx.build([
{
name: title,
name: 'Sheet 1',
data: rows,
options: {
'!merges': ranges,