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: Clear mobile outline when all tabs are closed https://github.com/siyuan-note/siyuan/issues/19339
Daniele493614dcb30
diff --git a/app/src/mobile/dock/MobileOutline.ts b/app/src/mobile/dock/MobileOutline.tsindex f4c823576c..309f7dfa1d 100644--- a/app/src/mobile/dock/MobileOutline.ts+++ b/app/src/mobile/dock/MobileOutline.ts@@ -544,6 +544,18 @@ export class MobileOutline extends Model {}public reload(callback?: () => void) {+ if (document.getElementById("editor").classList.contains("fn__none")) {+ this.reloadId++;+ this.currentRequestID++;+ this.blockId = "";+ this.isPreview = false;+ this.preFilterExpandIds = null;+ this.tree.updateData(null);+ this.tree.element.scrollTop = 0;+ this.updateDocTitle();+ this.element.removeAttribute("data-loading");+ return;+ }const protyle = window.siyuan.mobile.editor?.protyle;const blockId = protyle?.block.rootID || this.blockId;if (!blockId) {diff --git a/app/src/mobile/util/setEmpty.ts b/app/src/mobile/util/setEmpty.tsindex 74f4fc3ac8..c6041f24c0 100644--- a/app/src/mobile/util/setEmpty.ts+++ b/app/src/mobile/util/setEmpty.ts@@ -23,6 +23,7 @@ export const setEmpty = (app: App) => {document.getElementById("toolbarName").classList.add("fn__hidden");document.getElementById("toolbarNameReadonly").classList.add("fn__hidden");document.getElementById("editor").classList.add("fn__none");+ window.siyuan.mobile.docks.outline?.reload();updateMobileTopBarLayout();const emptyElement = document.getElementById("empty");emptyElement.classList.remove("fn__none");