🎨 Expand doc tree after duplicating doc https://github.com/siyuan-note/siyuan/issues/14125

This commit is contained in:
Daniel 2025-02-17 16:03:43 +08:00
parent e8de30d2a2
commit d91c9afcb4
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -655,6 +655,7 @@ func duplicateDoc(c *gin.Context) {
notebook := tree.Box notebook := tree.Box
box := model.Conf.Box(notebook) box := model.Conf.Box(notebook)
model.DuplicateDoc(tree) model.DuplicateDoc(tree)
arg["listDocTree"] = true
pushCreate(box, tree.Path, arg) pushCreate(box, tree.Path, arg)
ret.Data = map[string]interface{}{ ret.Data = map[string]interface{}{