mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
5a9bb84641
commit
a635bcbafd
15 changed files with 63 additions and 64 deletions
|
|
@ -798,7 +798,7 @@ data-type="navigation-root" data-path="/">
|
|||
} else {
|
||||
counterElement.classList.add("fn__none");
|
||||
}
|
||||
window.siyuan.storage[Constants.LOCAL_FILESPATHS].forEach((item: filesPath) => {
|
||||
window.siyuan.storage[Constants.LOCAL_FILESPATHS].forEach((item: IFilesPath) => {
|
||||
item.openPaths.forEach((openPath) => {
|
||||
this.selectItem(item.notebookId, openPath, undefined, false);
|
||||
});
|
||||
|
|
@ -1137,9 +1137,9 @@ data-type="navigation-root" data-path="/">
|
|||
}
|
||||
|
||||
private getOpenPaths() {
|
||||
const filesPaths: filesPath[] = [];
|
||||
const filesPaths: IFilesPath[] = [];
|
||||
this.element.querySelectorAll(".b3-list[data-url]").forEach((item: HTMLElement) => {
|
||||
const notebookPaths: filesPath = {
|
||||
const notebookPaths: IFilesPath = {
|
||||
notebookId: item.getAttribute("data-url"),
|
||||
openPaths: []
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue