mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-02 06:48:49 +01:00
🐛 修改带命名的文档名锚文本会更新为文档名 https://github.com/siyuan-note/siyuan/issues/6259
This commit is contained in:
parent
0eb535c012
commit
95d2b7f67c
1 changed files with 6 additions and 4 deletions
|
|
@ -1275,12 +1275,14 @@ func RenameDoc(boxID, p, title string) (err error) {
|
|||
title = "Untitled"
|
||||
}
|
||||
|
||||
refText := getNodeRefText(tree.Root)
|
||||
evt := util.NewCmdResult("rename", 0, util.PushModeBroadcast, util.PushModeNone)
|
||||
evt.Data = map[string]interface{}{
|
||||
"box": boxID,
|
||||
"id": tree.Root.ID,
|
||||
"path": p,
|
||||
"title": title,
|
||||
"box": boxID,
|
||||
"id": tree.Root.ID,
|
||||
"path": p,
|
||||
"title": title,
|
||||
"refText": refText,
|
||||
}
|
||||
util.PushEvent(evt)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue