mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
🐛 闪卡复习了后,最后一个卡片点良好什么的按钮就会返回显示答案这个操作,不会显示已完成复习啥的
This commit is contained in:
parent
16519d0082
commit
50a1667c3d
@ -197,7 +197,7 @@ export const bindCardEvent = (options: {
|
||||
notebook: filterElement.getAttribute("data-id"),
|
||||
}, (treeCards) => {
|
||||
index = 0;
|
||||
options.cardsData.cards = treeCards.data.cards;
|
||||
options.cardsData = treeCards.data;
|
||||
if (options.cardsData.unreviewedCount > 0) {
|
||||
nextCard({
|
||||
countElement,
|
||||
@ -411,7 +411,7 @@ export const bindCardEvent = (options: {
|
||||
reviewedCards: options.cardsData.cards
|
||||
}, (result) => {
|
||||
index = 0;
|
||||
options.cardsData.cards = result.data.cards;
|
||||
options.cardsData = result.data;
|
||||
if (options.cardsData.unreviewedCount === 0) {
|
||||
if (result.data.unreviewedCount > 0) {
|
||||
newRound(countElement, editor, actionElements, result.data.unreviewedCount);
|
||||
|
Loading…
Reference in New Issue
Block a user