mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🐛 Windows 端打开本地文件所在位置失效 Fix https://github.com/siyuan-note/siyuan/issues/5808
This commit is contained in:
parent
99fdfd7966
commit
5542f25cf0
1 changed files with 4 additions and 0 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