🎨 file://
协议兼容 Window 平台使用 /
作为目录分割线 dcd4e3a382 (r81672670)
This commit is contained in:
parent
419fc4d721
commit
c5f0bcd71c
1 changed files with 3 additions and 3 deletions
|
@ -447,9 +447,9 @@ export const openBy = (url: string, type: "folder" | "app") => {
|
|||
});
|
||||
return;
|
||||
} else {
|
||||
address = url.replace("file:///", "");
|
||||
address = address.replace("file://", "");
|
||||
address = address.replace("file://\\", "");
|
||||
address = url.replace("file:///", "")
|
||||
.replace("file://\\", "")
|
||||
.replace("file://", "");
|
||||
if ("windows" === window.siyuan.config.system.os) {
|
||||
// `file://` 协议兼容 Window 平台使用 `/` 作为目录分割线 https://github.com/siyuan-note/siyuan/issues/5681
|
||||
address = address.replace("/", "\\");
|
||||
|
|
Loading…
Add table
Reference in a new issue