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/15455

Vanessa540fe7cfde7a
diff --git a/app/src/plugin/uninstall.ts b/app/src/plugin/uninstall.ts
index 19cfb52e18..1b2ec3fb74 100644
--- a/app/src/plugin/uninstall.ts
+++ b/app/src/plugin/uninstall.ts
@@ -32,9 +32,12 @@ export const uninstall = (app: App, name: string, isUninstall = false) => {
});
/// #endif
// rm topBar
- plugin.topBarIcons.forEach(item => {
+ for (let i = 0; i < plugin.topBarIcons.length; i++) {
+ const item = plugin.topBarIcons[i];
item.remove();
- });
+ plugin.topBarIcons.splice(i, 1);
+ i--;
+ }
/// #if !MOBILE
resizeTopBar();
// rm statusBar