mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Simplify document block paths in block ref search list https://github.com/siyuan-note/siyuan/issues/13364
This commit is contained in:
parent
1a48215076
commit
a1c21e9261
2 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue