🎨 桌面端支持导出图片、音频和视频 Fix https://github.com/siyuan-note/siyuan/issues/5693

This commit is contained in:
Liang Ding 2022-08-23 23:19:38 +08:00
parent 5ef314e148
commit 6e754ef190
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 47 additions and 1 deletions

View file

@ -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})
}
});
}