An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 限制页签最大打开数量为 `32` Fix https://github.com/siyuan-note/siyuan/issues/6303
Liang Ding402ecfb4f9ce
diff --git a/app/src/config/fileTree.ts b/app/src/config/fileTree.tsindex c49ec594c0..aff5c894a7 100644--- a/app/src/config/fileTree.ts+++ b/app/src/config/fileTree.ts@@ -77,6 +77,16 @@ export const fileTree = {</label>`;},_send() {+ let inputMaxOpenTabCount = parseInt((fileTree.element.querySelector("#maxOpenTabCount") as HTMLInputElement).value);+ if (32 < inputMaxOpenTabCount) {+ inputMaxOpenTabCount = 32;+ (fileTree.element.querySelector("#maxOpenTabCount") as HTMLInputElement).value = "32";+ }+ if (1 > inputMaxOpenTabCount) {+ inputMaxOpenTabCount = 1;+ (fileTree.element.querySelector("#maxOpenTabCount") as HTMLInputElement).value = "1";+ }+fetchPost("/api/setting/setFiletree", {sort: window.siyuan.config.fileTree.sort,alwaysSelectOpenedFile: (fileTree.element.querySelector("#alwaysSelectOpenedFile") as HTMLInputElement).checked,@@ -87,7 +97,7 @@ export const fileTree = {allowCreateDeeper: (fileTree.element.querySelector("#allowCreateDeeper") as HTMLInputElement).checked,removeDocWithoutConfirm: (fileTree.element.querySelector("#removeDocWithoutConfirm") as HTMLInputElement).checked,maxListCount: parseInt((fileTree.element.querySelector("#maxListCount") as HTMLInputElement).value),- maxOpenTabCount: parseInt((fileTree.element.querySelector("#maxOpenTabCount") as HTMLInputElement).value),+ maxOpenTabCount: inputMaxOpenTabCount,}, response => {fileTree.onSetfiletree(response.data);});