mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +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 := util.NewCmdResult("createdailynote", 0, util.PushModeBroadcast)
|
||||||
evt.AppId = app
|
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{}{
|
evt.Data = map[string]interface{}{
|
||||||
"box": box,
|
"box": box,
|
||||||
"path": p,
|
"path": p,
|
||||||
"files": files,
|
|
||||||
"name": name,
|
|
||||||
"id": tree.Root.ID,
|
|
||||||
}
|
}
|
||||||
evt.Callback = arg["callback"]
|
evt.Callback = arg["callback"]
|
||||||
util.PushEvent(evt)
|
util.PushEvent(evt)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue