Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/pull/16244

Vanessa370d549a482b
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts
index 90854b8538..fdb68fe11f 100644
--- a/app/src/plugin/index.ts
+++ b/app/src/plugin/index.ts
@@ -16,6 +16,8 @@ import {BlockPanel} from "../block/Panel";
import {Setting} from "./Setting";
import {clearOBG} from "../layout/dock/util";
import {Constants} from "../constants";
+import {uninstall} from "./uninstall";
+import {afterLoadPlugin} from "./loader";
export class Plugin {
private app: App;
@@ -115,6 +117,9 @@ export class Plugin {
public onDataChanged() {
// 存储数据变更
+ // 兼容 4.3.1 以前同步数据使用重载插件的问题
+ uninstall(this.app, this.name, false);
+ afterLoadPlugin(this);
}
public async updateCards(options: ICardData) {