An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Fix mobile settings swipe back skipping nested views https://github.com/siyuan-note/siyuan/issues/19303
Daniel74fb069558c8
diff --git a/app/src/mobile/menu/index.ts b/app/src/mobile/menu/index.tsindex 8293033fd1..fb244e485c 100644--- a/app/src/mobile/menu/index.ts+++ b/app/src/mobile/menu/index.ts@@ -193,6 +193,13 @@ const openSettingTab = (app: App, settingTabDef: ISettingTabShell<TSettingTab>,return false;}}+ // 返回时优先关闭设置页内已展开的子视图,与子视图返回按钮的行为保持一致+ const views = root ? Array.from(root.querySelectorAll<HTMLElement>(".config__view--show")) : [];+ const backElement = views[views.length - 1]?.querySelector<HTMLElement>('[data-action="back"]');+ if (backElement) {+ backElement.click();+ return false;+ }if (returnCallback) {returnCallback();} else {