mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve kernel stability https://github.com/siyuan-note/siyuan/issues/9912
This commit is contained in:
parent
bab8aaf73f
commit
a41797da68
1 changed files with 6 additions and 2 deletions
|
|
@ -95,7 +95,9 @@ func createDocsByHPath(boxID, hPath, content, parentID, id string /* id 参数
|
|||
root = hpathBtMap[hp]
|
||||
isNotLast := i < len(parts)-1
|
||||
if nil == root {
|
||||
retID = ast.NewNodeID()
|
||||
if "" == retID {
|
||||
retID = ast.NewNodeID()
|
||||
}
|
||||
pathBuilder.WriteString(retID)
|
||||
docP := pathBuilder.String() + ".sy"
|
||||
if isNotLast {
|
||||
|
|
@ -116,7 +118,9 @@ func createDocsByHPath(boxID, hPath, content, parentID, id string /* id 参数
|
|||
}
|
||||
}
|
||||
} else {
|
||||
retID = root.ID
|
||||
if "" == retID {
|
||||
retID = root.ID
|
||||
}
|
||||
pathBuilder.WriteString(root.ID)
|
||||
if !isNotLast {
|
||||
pathBuilder.WriteString(".sy")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue