This commit is contained in:
Vanessa 2023-10-08 16:28:00 +08:00
parent ec65118339
commit b869fd1d9d
8 changed files with 29 additions and 18 deletions

View file

@ -186,8 +186,8 @@ export const exportConfig = {
window.location.href = response.data.zip;
});
/// #else
const filePaths = await ipcRenderer.invoke(Constants.SIYUAN_DIALOG,{
type: "showOpenDialogSync",
const filePaths = await ipcRenderer.invoke(Constants.SIYUAN_GET,{
cmd: "showOpenDialogSync",
title: window.siyuan.languages.export + " " + "Data",
properties: ["createDirectory", "openDirectory"],
});
@ -211,8 +211,8 @@ export const exportConfig = {
});
const pandocBinElement = exportConfig.element.querySelector("#pandocBin") as HTMLInputElement;
pandocBinElement.addEventListener("click", async () => {
const localPath = await ipcRenderer.invoke(Constants.SIYUAN_DIALOG,{
type: "showOpenDialog",
const localPath = await ipcRenderer.invoke(Constants.SIYUAN_GET,{
cmd: "showOpenDialog",
defaultPath: window.siyuan.config.system.homeDir,
properties: ["openFile"],
});