diff --git a/app/src/protyle/export/index.ts b/app/src/protyle/export/index.ts index 461a920a3..bf94b9417 100644 --- a/app/src/protyle/export/index.ts +++ b/app/src/protyle/export/index.ts @@ -381,7 +381,9 @@ const renderPDF = (id: string) => { webSecurity: false, }, }); - window.siyuan.printWin.loadURL(servePath); + fetchPost("/api/export/exportTempContent", {content: html}, (response) => { + window.siyuan.printWin.loadURL(response.data.url); + }) }; const getExportPath = (option: { type: string, id: string }, removeAssets?: boolean) => {