🎨 Improve refreshing of doc tree when creating doc https://github.com/siyuan-note/siyuan/issues/12109

This commit is contained in:
Daniel 2025-02-09 12:28:56 +08:00
parent 5ddda02aba
commit 296a045899
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -744,14 +744,9 @@ func createDailyNote(c *gin.Context) {
}
evt := util.NewCmdResult("createdailynote", 0, util.PushModeBroadcast)
evt.AppId = app
name := path.Base(p)
files, _, _ := model.ListDocTree(box.ID, path.Dir(p), util.SortModeUnassigned, false, false, model.Conf.FileTree.MaxListCount)
evt.Data = map[string]interface{}{
"box": box,
"path": p,
"files": files,
"name": name,
"id": tree.Root.ID,
"box": box,
"path": p,
}
evt.Callback = arg["callback"]
util.PushEvent(evt)