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

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