mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Improve net img convert to local https://github.com/siyuan-note/siyuan/issues/13600
This commit is contained in:
parent
78d5f54117
commit
d34caba3bb
2 changed files with 6 additions and 0 deletions
|
|
@ -57,6 +57,9 @@ func statAsset(c *gin.Context) {
|
|||
if strings.Contains(p, ":") {
|
||||
p = strings.TrimPrefix(p, "/")
|
||||
}
|
||||
if strings.Contains(p, "?") {
|
||||
p = p[:strings.Index(p, "?")]
|
||||
}
|
||||
} else {
|
||||
ret.Code = 1
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue