🎨 Simplify document block paths in block ref search list https://github.com/siyuan-note/siyuan/issues/13364

This commit is contained in:
Daniel 2024-12-04 23:19:36 +08:00
parent 1a48215076
commit a1c21e9261
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 15 additions and 0 deletions

View file

@ -101,6 +101,10 @@ func (block *Block) IsContainerBlock() bool {
return false
}
func (block *Block) IsDoc() bool {
return "NodeDocument" == block.Type
}
type Path struct {
ID string `json:"id"` // 块 ID
Box string `json:"box"` // 块 Box