mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Support focus block export template https://github.com/siyuan-note/siyuan/issues/8117
This commit is contained in:
parent
9cb6e9ec25
commit
1c47a63cca
4 changed files with 63 additions and 27 deletions
|
|
@ -54,8 +54,9 @@ func docSaveAsTemplate(c *gin.Context) {
|
|||
}
|
||||
|
||||
id := arg["id"].(string)
|
||||
name := arg["name"].(string)
|
||||
overwrite := arg["overwrite"].(bool)
|
||||
code, err := model.DocSaveAsTemplate(id, overwrite)
|
||||
code, err := model.DocSaveAsTemplate(id, name, overwrite)
|
||||
if nil != err {
|
||||
ret.Code = -1
|
||||
ret.Msg = util.EscapeHTML(err.Error())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue