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/10766
Vanessaa5e32d657549
diff --git a/app/src/mobile/editor.ts b/app/src/mobile/editor.tsindex f2d70e6611..73c12d580f 100644--- a/app/src/mobile/editor.ts+++ b/app/src/mobile/editor.ts@@ -72,7 +72,12 @@ export const openMobileFileById = (app: App, id: string, action = [Constants.CB_getDocByScroll({protyle: window.siyuan.mobile.editor.protyle,scrollAttr: window.siyuan.storage[Constants.LOCAL_FILEPOSITION][data.data.rootID],- mergedOptions: protyleOptions+ mergedOptions: protyleOptions,+ cb() {+ app.plugins.forEach(item => {+ item.eventBus.emit("switch-protyle", {protyle: window.siyuan.mobile.editor.protyle});+ });+ }});} else {fetchPost("/api/filetree/getDoc", {@@ -83,7 +88,12 @@ export const openMobileFileById = (app: App, id: string, action = [Constants.CB_onGet({data: getResponse,protyle: window.siyuan.mobile.editor.protyle,- action+ action,+ afterCB() {+ app.plugins.forEach(item => {+ item.eventBus.emit("switch-protyle", {protyle: window.siyuan.mobile.editor.protyle});+ });+ }});});}@@ -94,8 +104,5 @@ export const openMobileFileById = (app: App, id: string, action = [Constants.CB_(document.getElementById("toolbarName") as HTMLInputElement).value = data.data.rootTitle === window.siyuan.languages.untitled ? "" : data.data.rootTitle;setEditor();closePanel();- app.plugins.forEach(item => {- item.eventBus.emit("switch-protyle", {protyle: window.siyuan.mobile.editor.protyle});- });});};