mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
This commit is contained in:
parent
bb6139efc1
commit
7b7750ea4c
1 changed files with 5 additions and 1 deletions
|
|
@ -641,8 +641,12 @@ export class Outline extends Model {
|
|||
}, 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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue