Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2022-09-05 22:02:10 +08:00
commit 009f59a8d1
13 changed files with 83 additions and 20 deletions

View file

@ -481,6 +481,10 @@ export const openBy = (url: string, type: "folder" | "app") => {
if (type === "app") {
shell.openPath(address);
} else if (type === "folder") {
if ("windows" === window.siyuan.config.system.os) {
// Windows 端打开本地文件所在位置失效 https://github.com/siyuan-note/siyuan/issues/5808
address = address.replace(/\\\\/g, "\\");
}
shell.showItemInFolder(address);
}
/// #endif