mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 15:04:07 +01:00
🎨 桌面端支持导出图片、音频和视频 Fix https://github.com/siyuan-note/siyuan/issues/5693
This commit is contained in:
parent
5ef314e148
commit
6e754ef190
3 changed files with 47 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ export const exportAsset = (src: string) => {
|
|||
properties: ["showOverwriteConfirmation"],
|
||||
}).then((result: SaveDialogReturnValue) => {
|
||||
if (!result.canceled) {
|
||||
fetchPost("/api/file/saveAs", {src, targe: result.filePath})
|
||||
fetchPost("/api/file/copyFile", {src, dest: result.filePath})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue