mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 支持通过界面设置代码片段 https://github.com/siyuan-note/siyuan/issues/6357
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user