Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-05-11 09:55:49 +08:00
commit 07c7298182
5 changed files with 100 additions and 5 deletions

View file

@ -700,6 +700,39 @@ export const exportMd = (id: string) => {
openByMobile(response.data.zip);
});
}
}, {
label: "ODT",
click: () => {
const msgId = showMessage(window.siyuan.languages.exporting, -1);
fetchPost("/api/export/exportODT", {
id,
}, response => {
hideMessage(msgId);
openByMobile(response.data.zip);
});
}
}, {
label: "RTF",
click: () => {
const msgId = showMessage(window.siyuan.languages.exporting, -1);
fetchPost("/api/export/exportRTF", {
id,
}, response => {
hideMessage(msgId);
openByMobile(response.data.zip);
});
}
}, {
label: "EPUB",
click: () => {
const msgId = showMessage(window.siyuan.languages.exporting, -1);
fetchPost("/api/export/exportEPUB", {
id,
}, response => {
hideMessage(msgId);
openByMobile(response.data.zip);
});
}
},
]
}