mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Improve refreshing of doc tree when creating doc https://github.com/siyuan-note/siyuan/issues/12109
This commit is contained in:
parent
5ddda02aba
commit
296a045899
1 changed files with 2 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue