mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +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]
|
root = hpathBtMap[hp]
|
||||||
isNotLast := i < len(parts)-1
|
isNotLast := i < len(parts)-1
|
||||||
if nil == root {
|
if nil == root {
|
||||||
retID = ast.NewNodeID()
|
if "" == retID {
|
||||||
|
retID = ast.NewNodeID()
|
||||||
|
}
|
||||||
pathBuilder.WriteString(retID)
|
pathBuilder.WriteString(retID)
|
||||||
docP := pathBuilder.String() + ".sy"
|
docP := pathBuilder.String() + ".sy"
|
||||||
if isNotLast {
|
if isNotLast {
|
||||||
|
|
@ -116,7 +118,9 @@ func createDocsByHPath(boxID, hPath, content, parentID, id string /* id 参数
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
retID = root.ID
|
if "" == retID {
|
||||||
|
retID = root.ID
|
||||||
|
}
|
||||||
pathBuilder.WriteString(root.ID)
|
pathBuilder.WriteString(root.ID)
|
||||||
if !isNotLast {
|
if !isNotLast {
|
||||||
pathBuilder.WriteString(".sy")
|
pathBuilder.WriteString(".sy")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue