From 4e5a19529028273aafa62202adbb8b596a6229d6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 27 Sep 2022 00:11:50 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/5959 --- app/src/protyle/export/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) => {