🐛 闪卡复习了后,最后一个卡片点良好什么的按钮就会返回显示答案这个操作,不会显示已完成复习啥的

This commit is contained in:
Vanessa 2023-12-25 00:34:16 +08:00
parent 16519d0082
commit 50a1667c3d

View File

@ -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);