mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
811c99b6ac
commit
251d5e012c
1 changed files with 0 additions and 15 deletions
|
|
@ -325,17 +325,6 @@ export class Outline extends Model {
|
||||||
preview: this.isPreview
|
preview: this.isPreview
|
||||||
}, response => {
|
}, response => {
|
||||||
this.update(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");
|
currentId = currentElement.getAttribute("data-node-id");
|
||||||
}
|
}
|
||||||
const scrollTop = this.element.scrollTop;
|
const scrollTop = this.element.scrollTop;
|
||||||
|
|
||||||
// 保存当前文档的折叠状态到新的持久化存储
|
|
||||||
this.saveExpendIds();
|
|
||||||
|
|
||||||
if (typeof callbackId !== "undefined") {
|
if (typeof callbackId !== "undefined") {
|
||||||
this.blockId = callbackId;
|
this.blockId = callbackId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue