Vanessa 2025-10-19 18:25:56 +08:00
parent d04565e588
commit c2d3407789

View file

@ -628,7 +628,7 @@ const getExportPath = (option: IExportOptions, removeAssets?: boolean, mergeSubd
} }
afterExport(exportResponse.data.path, msgId); afterExport(exportResponse.data.path, msgId);
} else { } else {
onExport(exportResponse, savePath, option, removeAssets, msgId); onExport(exportResponse, savePath, option, msgId);
} }
}); });
} }
@ -636,7 +636,7 @@ const getExportPath = (option: IExportOptions, removeAssets?: boolean, mergeSubd
}; };
/// #endif /// #endif
export const onExport = async (data: IWebSocketData, filePath: string, exportOption: IExportOptions, removeAssets?: boolean, msgId?: string) => { export const onExport = async (data: IWebSocketData, filePath: string, exportOption: IExportOptions, msgId?: string) => {
let themeName = window.siyuan.config.appearance.themeLight; let themeName = window.siyuan.config.appearance.themeLight;
let mode = 0; let mode = 0;
if (["html", "htmlmd"].includes(exportOption.type) && window.siyuan.config.appearance.mode === 1) { if (["html", "htmlmd"].includes(exportOption.type) && window.siyuan.config.appearance.mode === 1) {