🎨 新建文档名模板 改为 新建文档存放位置 并支持设置路径 https://github.com/siyuan-note/siyuan/issues/4494

This commit is contained in:
Liang Ding 2023-02-03 21:09:48 +08:00
parent 2982ac75dd
commit 8660a2b214
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -536,14 +536,14 @@ func getDocCreateSavePath(c *gin.Context) {
docCreateSavePathTpl = model.Conf.FileTree.DocCreateSavePath
}
path, err := model.RenderGoTemplate(docCreateSavePathTpl)
p, err := model.RenderGoTemplate(docCreateSavePathTpl)
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
return
}
ret.Data = map[string]interface{}{
"path": path,
"path": p,
}
}