diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts index 465c88b9c..5e0aaaf9d 100644 --- a/app/src/util/pathName.ts +++ b/app/src/util/pathName.ts @@ -37,7 +37,8 @@ export const isLocalPath = (link: string) => { if (!link) { return false; } - return link.startsWith("assets/") || link.startsWith("file://"); + return link.startsWith("assets/") || link.startsWith("file://") || + 0 < link.indexOf(":/") || link.startsWith("\\\\"); // 超链接地址更好地兼容本地路径 https://github.com/siyuan-note/siyuan/issues/5980 }; export const pathPosix = () => {