mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 04:10:16 +01:00
This commit is contained in:
parent
5bf5684d17
commit
0e334d1ca0
2 changed files with 7 additions and 18 deletions
|
|
@ -636,22 +636,10 @@ export class Outline extends Model {
|
|||
});
|
||||
this.element.scrollTop = scrollTop;
|
||||
} else if (this.blockId) {
|
||||
fetchPost("/api/storage/getOutlineStorage", {
|
||||
docID: this.blockId
|
||||
}, storageResponse => {
|
||||
const storageData = storageResponse.data;
|
||||
if (storageData && storageData.expandIds) {
|
||||
if (storageData.expandIds.length === 0) {
|
||||
this.tree.collapseAll();
|
||||
} else {
|
||||
this.tree.setExpandIds(storageData.expandIds);
|
||||
}
|
||||
}
|
||||
if ((this.headerElement.querySelector("input.b3-text-field.search__label") as HTMLInputElement).value) {
|
||||
this.setFilter();
|
||||
}
|
||||
this.element.scrollTop = scrollTop;
|
||||
});
|
||||
if ((this.headerElement.querySelector("input.b3-text-field.search__label") as HTMLInputElement).value) {
|
||||
this.setFilter();
|
||||
}
|
||||
this.element.scrollTop = scrollTop;
|
||||
}
|
||||
if (currentId) {
|
||||
currentElement = this.element.querySelector(`[data-node-id="${currentId}"]`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue