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 https://github.com/siyuan-note/siyuan/issues/9717
Vanessaccb95c7132f1
diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.tsindex fc1f115ade..58ed0f1f1d 100644--- a/app/src/dialog/processSystem.ts+++ b/app/src/dialog/processSystem.ts@@ -170,7 +170,9 @@ export const kernelError = () => {export const exitSiYuan = () => {hideAllElements(["util"]);/// #if MOBILE- saveScroll(window.siyuan.mobile.editor.protyle);+ if (window.siyuan.mobile.editor) {+ saveScroll(window.siyuan.mobile.editor.protyle);+ }/// #endiffetchPost("/api/system/exit", {force: false}, (response) => {if (response.code === 1) { // 同步执行失败diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.tsindex 7fc5ad5395..05320a4f60 100644--- a/app/src/mobile/util/initFramework.ts+++ b/app/src/mobile/util/initFramework.ts@@ -20,7 +20,7 @@ import {syncGuide} from "../../sync/syncGuide";import {Inbox} from "../../layout/dock/Inbox";import {App} from "../../index";-export const initFramework = (app: App, isStart:boolean) => {+export const initFramework = (app: App, isStart: boolean) => {setInlineStyle();renderSnippet();initKeyboardToolbar();diff --git a/app/src/protyle/ui/hideElements.ts b/app/src/protyle/ui/hideElements.tsindex e666a002da..89edcec6e7 100644--- a/app/src/protyle/ui/hideElements.ts+++ b/app/src/protyle/ui/hideElements.ts@@ -61,10 +61,12 @@ export const hideAllElements = (types: string[]) => {if (types.includes("util")) {/// #if MOBILEconst editor = getCurrentEditor();- editor.protyle.toolbar.subElement.classList.add("fn__none");- if (editor.protyle.toolbar.subElementCloseCB) {- editor.protyle.toolbar.subElementCloseCB();- editor.protyle.toolbar.subElementCloseCB = undefined;+ if (editor) {+ editor.protyle.toolbar.subElement.classList.add("fn__none");+ if (editor.protyle.toolbar.subElementCloseCB) {+ editor.protyle.toolbar.subElementCloseCB();+ editor.protyle.toolbar.subElementCloseCB = undefined;+ }}/// #elsegetAllEditor().forEach(item => {