🎨 支持合并子文档导出 Word/PDF https://github.com/siyuan-note/siyuan/issues/3219

This commit is contained in:
Liang Ding 2022-12-11 11:56:41 +08:00
parent e71c120a97
commit 954642023d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 2 additions and 6 deletions

View file

@ -660,7 +660,7 @@ func GetDoc(startID, endID, id string, index int, keyword string, mode int, size
luteEngine.RenderOptions.NodeIndexStart = index
dom = luteEngine.Tree2BlockDOM(subTree, luteEngine.RenderOptions)
SetRecentDocByTree(id, tree)
SetRecentDocByTree(tree)
return
}

View file

@ -30,11 +30,8 @@ import (
type RecentDoc struct {
RootID string `json:"rootID"`
ID string `json:"id"`
Icon string `json:"icon"`
Title string `json:"title"`
Mode string `json:"mode"`
Action string `json:"action"`
}
var recentDocLock = sync.Mutex{}
@ -63,10 +60,9 @@ func RemoveRecentDoc(ids []string) {
return
}
func SetRecentDocByTree(id string, tree *parse.Tree) {
func SetRecentDocByTree(tree *parse.Tree) {
recentDoc := &RecentDoc{
RootID: tree.Root.ID,
ID: id,
Icon: tree.Root.IALAttr("icon"),
Title: tree.Root.IALAttr("title"),
}