Skip to content

Commit 251d5e0

Browse files
committed
🎨 #16121 10
1 parent 811c99b commit 251d5e0

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

app/src/layout/dock/Outline.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -325,17 +325,6 @@ export class Outline extends Model {
325325
preview: this.isPreview
326326
}, response => {
327327
this.update(response);
328-
// 初始化时从新的存储恢复折叠状态
329-
if (!this.isPreview) {
330-
fetchPost("/api/storage/getOutlineStorage", {
331-
docID: this.blockId
332-
}, storageResponse => {
333-
const storageData = storageResponse.data;
334-
if (storageData && storageData.expandIds) {
335-
this.tree.setExpandIds(storageData.expandIds);
336-
}
337-
});
338-
}
339328
});
340329
}
341330

@@ -633,10 +622,6 @@ export class Outline extends Model {
633622
currentId = currentElement.getAttribute("data-node-id");
634623
}
635624
const scrollTop = this.element.scrollTop;
636-
637-
// 保存当前文档的折叠状态到新的持久化存储
638-
this.saveExpendIds();
639-
640625
if (typeof callbackId !== "undefined") {
641626
this.blockId = callbackId;
642627
}

0 commit comments

Comments
 (0)