🎨 新建文档名模板
改为 新建文档存放位置
并支持设置路径 https://github.com/siyuan-note/siyuan/issues/4494
This commit is contained in:
parent
2982ac75dd
commit
8660a2b214
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue