fix: preserve text export format selection

This commit is contained in:
aits2026
2026-03-10 13:55:26 +08:00
parent 1d97b19774
commit 96ac655d92

View File

@@ -3887,11 +3887,9 @@ function ExportPage() {
if (scope === 'content' && contentType) { if (scope === 'content' && contentType) {
if (contentType === 'text') { if (contentType === 'text') {
const fastTextFormat: TextExportFormat = options.format === 'excel' ? 'arkme-json' : options.format
const textExportConcurrency = Math.min(2, Math.max(1, base.exportConcurrency ?? options.exportConcurrency)) const textExportConcurrency = Math.min(2, Math.max(1, base.exportConcurrency ?? options.exportConcurrency))
return { return {
...base, ...base,
format: fastTextFormat,
contentType, contentType,
exportConcurrency: textExportConcurrency, exportConcurrency: textExportConcurrency,
exportAvatars: base.exportAvatars, exportAvatars: base.exportAvatars,