diff --git a/src/index.ts b/src/index.ts index 1096ea3..13eae0b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -258,6 +258,12 @@ export default class PluginSample extends Plugin { console.log("uninstall"); } + // 使用 saveData() 存储的数据发生变更时触发,注释掉则自动禁用插件再重新启用 + // Triggered when data stored using saveData() changes. If commented out, the plugin will be automatically disabled and then re-enabled. + // onDataChanged() { + // console.log("onDataChanged"); + // } + async updateCards(options: ICardData) { options.cards.sort((a: ICard, b: ICard) => { if (a.blockID < b.blockID) {