Bläddra i källkod

:art: Automatically download network assets when the cloud inbox is moved to docs https://github.com/siyuan-note/siyuan/issues/9775

Daniel 1 år sedan
förälder
incheckning
d802980fb7
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      kernel/api/filetree.go

+ 4 - 0
kernel/api/filetree.go

@@ -434,6 +434,10 @@ func createDoc(c *gin.Context) {
 
 	box := model.Conf.Box(notebook)
 	pushCreate(box, p, tree.Root.ID, arg)
+
+	ret.Data = map[string]interface{}{
+		"id": tree.Root.ID,
+	}
 }
 
 func createDailyNote(c *gin.Context) {