🎨 超链接地址更好地兼容本地路径 Fix https://github.com/siyuan-note/siyuan/issues/5980

This commit is contained in:
Liang Ding 2022-09-27 11:59:07 +08:00
parent 5ea91f3824
commit af25cf1d7c
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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 = () => {