Vanessa 2025-03-03 22:21:55 +08:00
parent 2c476118c3
commit 1088cf163b
3 changed files with 91 additions and 4 deletions

View file

@ -116,7 +116,7 @@ export const fileTree = {
maxListCount: parseInt((fileTree.element.querySelector("#maxListCount") as HTMLInputElement).value),
maxOpenTabCount: inputMaxOpenTabCount,
}, response => {
fileTree.onSetfiletree(response.data);
window.siyuan.config.fileTree = response.data;
});
},
bindEvent: () => {
@ -127,8 +127,5 @@ export const fileTree = {
fileTree._send();
});
});
},
onSetfiletree: (fileTree: Config.IFileTree) => {
window.siyuan.config.fileTree = fileTree;
}
};