mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🎨 超链接地址更好地兼容本地路径 https://github.com/siyuan-note/siyuan/issues/5980
This commit is contained in:
parent
9a931ee8dc
commit
afa0290ca5
3 changed files with 22 additions and 6 deletions
|
|
@ -60,7 +60,10 @@ func InsertLocalAssets(id string, assetPaths []string, isUpload bool) (succMap m
|
|||
fName += ext
|
||||
baseName := fName
|
||||
if gulu.File.IsDir(p) || !isUpload {
|
||||
succMap[baseName] = "file://" + p
|
||||
if !strings.HasPrefix(p, "\\\\") {
|
||||
p = "file://" + p
|
||||
}
|
||||
succMap[baseName] = p
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue