mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
a3f2da83d1
commit
ea2da27c0b
2 changed files with 6 additions and 3 deletions
|
|
@ -760,6 +760,7 @@ export const exportMd = (id: string) => {
|
|||
icon: "iconPDF",
|
||||
ignore: !isInAndroid(),
|
||||
click: () => {
|
||||
const msId = showMessage(window.siyuan.languages.exporting);
|
||||
const localData = window.siyuan.storage[Constants.LOCAL_EXPORTPDF];
|
||||
fetchPost("/api/export/exportPreviewHTML", {
|
||||
id,
|
||||
|
|
@ -768,6 +769,9 @@ export const exportMd = (id: string) => {
|
|||
}, async response => {
|
||||
const html = await onExport(response, undefined, {type: "pdf", id});
|
||||
window.JSAndroid.print(html);
|
||||
setTimeout(() => {
|
||||
hideMessage(msId);
|
||||
}, 3000);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue