mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
f39750e393
commit
14c023477c
2 changed files with 18 additions and 2 deletions
|
|
@ -39,7 +39,13 @@ func renameAsset(c *gin.Context) {
|
|||
|
||||
oldPath := arg["oldPath"].(string)
|
||||
newName := arg["newName"].(string)
|
||||
model.RenameAsset(oldPath, newName)
|
||||
err := model.RenameAsset(oldPath, newName)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
ret.Data = map[string]interface{}{"closeTimeout": 5000}
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
func getDocImageAssets(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue