mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-24 07:54:07 +01:00
♻️ Extract method util.GetTreeID
This commit is contained in:
parent
c295a496d7
commit
6f7e106be4
11 changed files with 26 additions and 27 deletions
|
|
@ -708,7 +708,7 @@ func getBoxesByPaths(paths []string) (ret map[string]*Box) {
|
|||
ret = map[string]*Box{}
|
||||
var ids []string
|
||||
for _, p := range paths {
|
||||
ids = append(ids, strings.TrimSuffix(path.Base(p), ".sy"))
|
||||
ids = append(ids, util.GetTreeID(p))
|
||||
}
|
||||
|
||||
bts := treenode.GetBlockTrees(ids)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue