mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 超链接地址更好地兼容本地路径 https://github.com/siyuan-note/siyuan/issues/5980
This commit is contained in:
parent
af25cf1d7c
commit
bc6f6e467e
2 changed files with 12 additions and 7 deletions
|
|
@ -231,8 +231,13 @@ func insertLocalAssets(c *gin.Context) {
|
|||
for _, pathArg := range assetPathsArg {
|
||||
assetPaths = append(assetPaths, pathArg.(string))
|
||||
}
|
||||
isUpload := true
|
||||
isUploadArg := arg["isUpload"]
|
||||
if nil != isUploadArg {
|
||||
isUpload = isUploadArg.(bool)
|
||||
}
|
||||
id := arg["id"].(string)
|
||||
succMap, err := model.InsertLocalAssets(id, assetPaths)
|
||||
succMap, err := model.InsertLocalAssets(id, assetPaths, isUpload)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue