mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 04:20:53 +08:00
🎨 Improve duplicate doc refresh doc tree
This commit is contained in:
parent
f375a085ce
commit
fc3f447280
@ -526,11 +526,10 @@ func duplicateDoc(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
p := tree.Path
|
|
||||||
notebook := tree.Box
|
notebook := tree.Box
|
||||||
box := model.Conf.Box(notebook)
|
box := model.Conf.Box(notebook)
|
||||||
model.DuplicateDoc(tree)
|
model.DuplicateDoc(tree)
|
||||||
pushCreate(box, p, tree.Root.ID, arg)
|
pushCreate(box, tree.Path, tree.ID, arg)
|
||||||
|
|
||||||
ret.Data = map[string]interface{}{
|
ret.Data = map[string]interface{}{
|
||||||
"id": tree.Root.ID,
|
"id": tree.Root.ID,
|
||||||
|
Loading…
Reference in New Issue
Block a user