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: fix https://github.com/siyuan-note/siyuan/issues/10566
Vanessa8f271f6ef19e
diff --git a/app/src/layout/tabUtil.ts b/app/src/layout/tabUtil.tsindex 97b5e64e77..796c79bbdd 100644--- a/app/src/layout/tabUtil.ts+++ b/app/src/layout/tabUtil.ts@@ -53,9 +53,18 @@ export const switchTabByIndex = (index: number) => {} else if (index === -2) {// 上一个indexElement = activeDockIcoElement.previousElementSibling;+ if (!indexElement) {+ indexElement = activeDockIcoElement.parentElement.lastElementChild;+ if (indexElement.classList.contains("dock__item--pin")) {+ indexElement = indexElement.previousElementSibling;+ }+ }} else if (index === -3) {// 下一个indexElement = activeDockIcoElement.nextElementSibling;+ if (!indexElement || indexElement.classList.contains("dock__item--pin")) {+ indexElement = activeDockIcoElement.parentElement.firstElementChild;+ }}const type = indexElement?.getAttribute("data-type");if (type) {@@ -72,9 +81,15 @@ export const switchTabByIndex = (index: number) => {} else if (index === -2) {// 上一个indexElement = tab.headElement.previousElementSibling;+ if (!indexElement) {+ indexElement = tab.headElement.parentElement.lastElementChild;+ }} else if (index === -3) {// 下一个indexElement = tab.headElement.nextElementSibling;+ if (!indexElement) {+ indexElement = tab.headElement.parentElement.firstElementChild;+ }}if (indexElement) {tab.parent.switchTab(indexElement as HTMLElement, true);