diff --git a/app/src/card/openCard.ts b/app/src/card/openCard.ts index bc660f6e3..183e698ca 100644 --- a/app/src/card/openCard.ts +++ b/app/src/card/openCard.ts @@ -143,6 +143,9 @@ export const bindCardEvent = (options: { dialog?: Dialog, index?: number }) => { + options.app.plugins.forEach(item => { + item.eventBus.emit("update-cards", options); + }); if (window.siyuan.storage[Constants.LOCAL_FLASHCARD].fullscreen) { fullscreen(options.element.querySelector(".card__main"), options.element.querySelector('[data-type="fullscreen"]')); diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts index 58d35f663..32bd53b99 100644 --- a/app/src/types/index.d.ts +++ b/app/src/types/index.d.ts @@ -64,6 +64,7 @@ type TEventBus = "ws-main" | "sync-start" | "sync-end" | "sync-fail" | "loaded-protyle" | "loaded-protyle-dynamic" | "loaded-protyle-static" | "switch-protyle" | "destroy-protyle" | + "update-cards"| "lock-screen" | "mobile-keyboard-show" | "mobile-keyboard-hide" type TAVCol =