mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🎨 Improve export menu (#14960)
fix https://github.com/siyuan-note/siyuan/pull/14950
This commit is contained in:
parent
7419c4bca8
commit
bb814179aa
2 changed files with 22 additions and 22 deletions
|
|
@ -530,12 +530,12 @@ export const exportMd = (id: string) => {
|
|||
});
|
||||
}
|
||||
}, {
|
||||
id: "exportMarkdown",
|
||||
label: "Markdown",
|
||||
icon: "iconMarkdown",
|
||||
id: "exportSiYuanZip",
|
||||
label: "SiYuan .sy.zip",
|
||||
icon: "iconSiYuan",
|
||||
click: () => {
|
||||
const msgId = showMessage(window.siyuan.languages.exporting, -1);
|
||||
fetchPost("/api/export/exportMd", {
|
||||
fetchPost("/api/export/exportSY", {
|
||||
id,
|
||||
}, response => {
|
||||
hideMessage(msgId);
|
||||
|
|
@ -543,12 +543,12 @@ export const exportMd = (id: string) => {
|
|||
});
|
||||
}
|
||||
}, {
|
||||
id: "exportSiYuanZip",
|
||||
label: "SiYuan .sy.zip",
|
||||
icon: "iconSiYuan",
|
||||
id: "exportMarkdown",
|
||||
label: "Markdown .zip",
|
||||
icon: "iconMarkdown",
|
||||
click: () => {
|
||||
const msgId = showMessage(window.siyuan.languages.exporting, -1);
|
||||
fetchPost("/api/export/exportSY", {
|
||||
fetchPost("/api/export/exportMd", {
|
||||
id,
|
||||
}, response => {
|
||||
hideMessage(msgId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue