🎨 支持通过界面设置代码片段 https://github.com/siyuan-note/siyuan/issues/6357

This commit is contained in:
Liang Ding 2022-10-27 11:30:04 +08:00
parent 41d882ddba
commit e3eff40e56
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 10 additions and 7 deletions

View file

@ -126,9 +126,11 @@ func removeSnippet(c *gin.Context) {
}
id := arg["id"].(string)
if err := model.RemoveSnippet(id); nil != err {
snippet, err := model.RemoveSnippet(id)
if nil != err {
ret.Code = -1
ret.Msg = "remove snippet failed: " + err.Error()
return
}
}
ret.Data = snippet
}