mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-11 06:30:57 +08:00
This commit is contained in:
parent
3178f31eb8
commit
bc36e67d87
@ -202,6 +202,9 @@ export const bindCardEvent = (options: {
|
||||
}, (treeCards) => {
|
||||
index = 0;
|
||||
options.cardsData = treeCards.data;
|
||||
options.app.plugins.forEach(item => {
|
||||
item.eventBus.emit("update-cards", options);
|
||||
});
|
||||
if (options.cardsData.cards.length > 0) {
|
||||
nextCard({
|
||||
countElement,
|
||||
@ -416,6 +419,9 @@ export const bindCardEvent = (options: {
|
||||
}, (result) => {
|
||||
index = 0;
|
||||
options.cardsData = result.data;
|
||||
options.app.plugins.forEach(item => {
|
||||
item.eventBus.emit("update-cards", options);
|
||||
});
|
||||
if (options.cardsData.cards.length === 0) {
|
||||
if (options.cardsData.unreviewedCount > 0) {
|
||||
newRound(countElement, editor, actionElements, result.data.unreviewedCount);
|
||||
|
Loading…
Reference in New Issue
Block a user