mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 21:38:48 +01:00
🎨 支持浏览卡包内的闪卡 https://github.com/siyuan-note/siyuan/issues/6943
This commit is contained in:
parent
51b4f68035
commit
0f6915802a
6 changed files with 19 additions and 5 deletions
|
|
@ -77,6 +77,15 @@ func GetFlashcards(deckID string, page int) (blocks []*Block, total, pageCount i
|
|||
blocks = []*Block{}
|
||||
return
|
||||
}
|
||||
|
||||
for i, b := range blocks {
|
||||
if nil == b {
|
||||
blocks[i] = &Block{
|
||||
ID: blockIDs[i],
|
||||
Content: Conf.Language(180),
|
||||
}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue