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

Vanessacaa76af1cb9b
diff --git a/app/src/layout/dock/index.ts b/app/src/layout/dock/index.ts
index 44e36c40bc..f108416ace 100644
--- a/app/src/layout/dock/index.ts
+++ b/app/src/layout/dock/index.ts
@@ -964,6 +964,9 @@ export class Dock {
}) {
this.app.plugins.find(pluginItem => {
if (Object.keys(pluginItem.docks).includes(dockType)) {
+ if (!window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][pluginItem.name][dockType]) {
+ window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][pluginItem.name][dockType] = pluginItem.docks[dockType].config;
+ }
Object.keys(options).forEach((item: "position") => {
window.siyuan.storage[Constants.LOCAL_PLUGIN_DOCKS][pluginItem.name][dockType][item] = options[item];
});