mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 23:42:36 +08:00
🎨 Fix tree id https://github.com/siyuan-note/siyuan/issues/14363
This commit is contained in:
parent
8418e3a454
commit
b3dbcec3cc
@ -281,10 +281,10 @@ func parseJSON2Tree(boxID, p string, jsonData []byte, luteEngine *lute.Lute) (re
|
|||||||
|
|
||||||
if pathID := util.GetTreeID(p); pathID != ret.Root.ID {
|
if pathID := util.GetTreeID(p); pathID != ret.Root.ID {
|
||||||
needFix = true
|
needFix = true
|
||||||
|
logging.LogInfof("reset tree id from [%s] to [%s]", ret.Root.ID, pathID)
|
||||||
ret.Root.ID = pathID
|
ret.Root.ID = pathID
|
||||||
ret.ID = pathID
|
ret.ID = pathID
|
||||||
ret.Root.SetIALAttr("id", ret.ID)
|
ret.Root.SetIALAttr("id", ret.ID)
|
||||||
logging.LogInfof("reset tree id from [%s] to [%s]", ret.Root.ID, pathID)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if needFix {
|
if needFix {
|
||||||
|
Loading…
Reference in New Issue
Block a user