This commit is contained in:
Vanessa 2022-12-07 22:52:41 +08:00
parent a1c81fda03
commit 4fe7184f81
3 changed files with 12 additions and 12 deletions

View file

@ -158,10 +158,10 @@ export const exportConfig = {
window.location.href = response.data.zip;
});
/// #else
let filePaths = dialog.showOpenDialogSync({
const filePaths = dialog.showOpenDialogSync({
title: window.siyuan.languages.export + " " + "Data",
properties: ["createDirectory", "openDirectory"],
})
});
if (filePaths && 0 < filePaths.length) {
const savePath = filePaths[0];
const msgId = showMessage(window.siyuan.languages.exporting, -1);