Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2024-04-30 12:21:40 +08:00
commit cf8529249d

View file

@ -526,11 +526,10 @@ func duplicateDoc(c *gin.Context) {
return
}
p := tree.Path
notebook := tree.Box
box := model.Conf.Box(notebook)
model.DuplicateDoc(tree)
pushCreate(box, p, tree.Root.ID, arg)
pushCreate(box, tree.Path, tree.ID, arg)
ret.Data = map[string]interface{}{
"id": tree.Root.ID,