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/issues/17581

Vanessae938086818bf
diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts
index c948673de8..e653f12d84 100644
--- a/app/src/plugin/index.ts
+++ b/app/src/plugin/index.ts
@@ -126,9 +126,13 @@ export class Plugin {
// 兼容 3.4.1 以前同步数据使用重载插件的问题
uninstall(this.app, this.name, true);
loadPlugins(this.app, [this.name], false).then(() => {
- afterLoadPlugin(this);
- getAllEditor().forEach(editor => {
- editor.protyle.toolbar.update(editor.protyle);
+ this.app.plugins.forEach(item => {
+ if (this.name.includes(item.name)) {
+ afterLoadPlugin(item);
+ getAllEditor().forEach(editor => {
+ editor.protyle.toolbar.update(editor.protyle);
+ });
+ }
});
});
}