mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-19 13:38:06 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
009f59a8d1
13 changed files with 83 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue