This commit is contained in:
Vanessa 2022-09-27 00:11:50 +08:00
parent 53e24a9ee8
commit 4e5a195290

View file

@ -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) => {