Skip to content

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

:art: Clear container content when initializing mobile plugin sidebar (#16271)

Jeffrey Chenc3196bfa0688
diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.ts
index 3335e9a020..16f44cd0a5 100644
--- a/app/src/mobile/util/initFramework.ts
+++ b/app/src/mobile/util/initFramework.ts
@@ -45,7 +45,9 @@ const openDockMenu = (app: App) => {
custom.destroy();
}
}
- custom = plugin.docks[dockId].mobileModel(document.querySelector('#sidebar [data-type="sidebar-plugin"]'));
+ const pluginPanelElement = document.querySelector('#sidebar [data-type="sidebar-plugin"]');
+ pluginPanelElement.innerHTML = "";
+ custom = plugin.docks[dockId].mobileModel(pluginPanelElement);
window.siyuan.mobile.docks[dockId] = custom;
}
}