Vanessa 2025-01-13 12:47:28 +08:00
parent 5a9bb84641
commit a635bcbafd
15 changed files with 63 additions and 64 deletions

View file

@ -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: []
};