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: goback
Vanessaa3c0fecec847
diff --git a/app/src/mobile/util/MobileBackFoward.ts b/app/src/mobile/util/MobileBackFoward.tsindex 9227b55b0f..4c3e5835ba 100644--- a/app/src/mobile/util/MobileBackFoward.ts+++ b/app/src/mobile/util/MobileBackFoward.ts@@ -123,7 +123,6 @@ export const goForward = () => {export const goBack = () => {const editor = getCurrentEditor();- const protyle = editor.protyle;if (window.siyuan.menus.menu.element.classList.contains("b3-menu--fullscreen") &&!window.siyuan.menus.menu.element.classList.contains("fn__none")) {window.siyuan.menus.menu.element.dispatchEvent(new CustomEvent("click", {detail: "back"}));@@ -139,7 +138,7 @@ export const goBack = () => {closePanel();return;} else if (editor && !editor.protyle.toolbar.subElement.classList.contains("fn__none")) {- hideElements(["util"], protyle);+ hideElements(["util"], editor.protyle);closePanel();return;} else if (window.siyuan.dialogs.length !== 0) {@@ -158,7 +157,8 @@ export const goBack = () => {if (window.siyuan.backStack.length < 1) {return;}- if (forwardStack.length === 0) {+ if (forwardStack.length === 0 && editor) {+ const protyle = editor.protyle;forwardStack.push({id: protyle.block.showAll ? protyle.block.id : protyle.block.rootID,endId: protyle.wysiwyg.element.firstElementChild.getAttribute("data-node-id") + Constants.ZWSP + protyle.wysiwyg.element.lastElementChild.getAttribute("data-node-id"),