mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🎨 加载文档时如果发现父文档 .sy 文件缺失则自动重建 Fix https://github.com/siyuan-note/siyuan/issues/6252
This commit is contained in:
parent
0dc5f64a41
commit
568f5ec6ef
2 changed files with 19 additions and 8 deletions
|
|
@ -76,6 +76,7 @@ func NewTree(boxID, p, hp, title string) *parse.Tree {
|
|||
ret.Box = boxID
|
||||
ret.Path = p
|
||||
ret.HPath = hp
|
||||
ret.Root.Spec = "1"
|
||||
newPara := &ast.Node{Type: ast.NodeParagraph, ID: ast.NewNodeID()}
|
||||
newPara.SetIALAttr("id", newPara.ID)
|
||||
newPara.SetIALAttr("updated", util.TimeFromID(newPara.ID))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue