fix(export): persist write layout across page switches

This commit is contained in:
tisonhuang committed 2026-03-05 09:20:52 +08:00
1 parent 49f99f57c9
commit e795474917
2 files changed
+5 -7

No files matched your search

+1 -1
View File
@@ -403,7 +403,7 @@ export type ExportWriteLayout = 'A' | 'B' | 'C'
export async function getExportWriteLayout(): Promise<ExportWriteLayout> {
const value = await config.get(CONFIG_KEYS.EXPORT_WRITE_LAYOUT)
if (value === 'A' || value === 'B' || value === 'C') return value
return 'A'
return 'B'
}
export async function setExportWriteLayout(layout: ExportWriteLayout): Promise<void> {