mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 23:44:06 +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: []
|
||||
};
|
||||
|
|
|
|||
|
|
@ -755,7 +755,7 @@ export class Graph extends Model {
|
|||
isBacklink: false,
|
||||
x: params.event.center.x,
|
||||
y: params.event.center.y,
|
||||
nodeIds: [node.id],
|
||||
refDefs: [{refID: node.id}]
|
||||
}));
|
||||
} else {
|
||||
checkFold(node.id, (zoomIn, action: TProtyleAction[]) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue