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: Close topmost mobile dialog before panels https://github.com/siyuan-note/siyuan/issues/18406
Daniel7476b7a9c13d
diff --git a/app/src/mobile/util/MobileBackFoward.ts b/app/src/mobile/util/MobileBackFoward.tsindex 4de5ab153d..a085e36ac3 100644--- a/app/src/mobile/util/MobileBackFoward.ts+++ b/app/src/mobile/util/MobileBackFoward.ts@@ -172,6 +172,12 @@ export const goBack = () => {!window.siyuan.menus.menu.element.classList.contains("fn__none")) {window.siyuan.menus.menu.element.dispatchEvent(new CustomEvent("click", {detail: "back"}));return;+ } else if (window.siyuan.viewer && !window.siyuan.viewer.destroyed) {+ window.siyuan.viewer.destroy();+ return;+ } else if (window.siyuan.dialogs.length !== 0) {+ window.siyuan.dialogs[window.siyuan.dialogs.length - 1].destroy();+ return;} else if (document.getElementById("model").style.transform === "translateY(0px)") {const searchAssetsPanelElement = document.getElementById("searchAssetsPanel");if (!searchAssetsPanelElement || searchAssetsPanelElement.classList.contains("fn__none")) {@@ -180,9 +186,6 @@ export const goBack = () => {searchAssetsPanelElement.classList.add("fn__none");}return;- } else if (window.siyuan.viewer && !window.siyuan.viewer.destroyed) {- window.siyuan.viewer.destroy();- return;} else if (document.getElementById("menu").style.transform === "translateX(0px)" ||document.getElementById("sidebar").style.transform === "translateX(0px)") {closePanel();@@ -191,10 +194,6 @@ export const goBack = () => {hideElements(["util"], editor.protyle);closePanel();return;- } else if (window.siyuan.dialogs.length !== 0) {- hideElements(["dialog"]);- closePanel();- return;}if ((window.JSAndroid || window.JSHarmony) && window.siyuan.backStack.length < 1) {if (document.querySelector('#message [data-id="exitTip"]')) {