mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Improve net assets to local assets https://github.com/siyuan-note/siyuan/issues/11885
This commit is contained in:
parent
d99931b71a
commit
3073be676d
2 changed files with 11 additions and 0 deletions
|
|
@ -53,6 +53,9 @@ func statAsset(c *gin.Context) {
|
|||
|
||||
} else if strings.HasPrefix(path, "file://") {
|
||||
p = strings.TrimPrefix(path, "file://")
|
||||
if strings.Contains(p, ":") {
|
||||
p = strings.TrimPrefix(p, "/")
|
||||
}
|
||||
} else {
|
||||
ret.Code = 1
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue