mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🐛 Create doc with ref Fix https://github.com/siyuan-note/siyuan/issues/9329
This commit is contained in:
parent
d869aef346
commit
11cc108893
1 changed files with 2 additions and 1 deletions
|
|
@ -47,8 +47,9 @@ func createDocsByHPath(boxID, hPath, content, parentID, id string /* id 参数
|
|||
// 如果父文档存在且 ID 一致,则直接在父文档下创建
|
||||
p := strings.TrimSuffix(preferredParent.Path, ".sy") + "/" + id + ".sy"
|
||||
if _, err = createDoc(boxID, p, name, content); nil != err {
|
||||
return
|
||||
logging.LogErrorf("create doc [%s] failed: %s", p, err)
|
||||
}
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if "" == id {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue