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/16121 10

Vanessa251d5e012c85
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts
index c6f3d24923..8b5684602d 100644
--- a/app/src/layout/dock/Outline.ts
+++ b/app/src/layout/dock/Outline.ts
@@ -325,17 +325,6 @@ export class Outline extends Model {
preview: this.isPreview
}, response => {
this.update(response);
- // 初始化时从新的存储恢复折叠状态
- if (!this.isPreview) {
- fetchPost("/api/storage/getOutlineStorage", {
- docID: this.blockId
- }, storageResponse => {
- const storageData = storageResponse.data;
- if (storageData && storageData.expandIds) {
- this.tree.setExpandIds(storageData.expandIds);
- }
- });
- }
});
}
@@ -633,10 +622,6 @@ export class Outline extends Model {
currentId = currentElement.getAttribute("data-node-id");
}
const scrollTop = this.element.scrollTop;
-
- // 保存当前文档的折叠状态到新的持久化存储
- this.saveExpendIds();
-
if (typeof callbackId !== "undefined") {
this.blockId = callbackId;
}