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/9678
Vanessaaf2fd13ae192
diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.tsindex 6fb8c743da..d9eaa06d9c 100644--- a/app/src/mobile/index.ts+++ b/app/src/mobile/index.ts@@ -98,7 +98,7 @@ class App {fetchPost("/api/system/getEmojiConf", {}, emojiResponse => {window.siyuan.emojis = emojiResponse.data as IEmoji[];setNoteBook(() => {- initFramework(this);+ initFramework(this, confResponse.data.start);initRightMenu(this);openChangelog();const unPinsMenu: IMenu[] = [];diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.tsindex 3a92cd9216..7fc5ad5395 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) => {+export const initFramework = (app: App, isStart:boolean) => {setInlineStyle();renderSnippet();initKeyboardToolbar();@@ -122,6 +122,10 @@ export const initFramework = (app: App) => {idZoomIn.isZoomIn ? [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_CONTEXT, Constants.CB_GET_ROOTSCROLL]);return;}+ if (window.siyuan.config.fileTree.closeTabsOnStart && isStart) {+ setEmpty(app);+ return;+ }const localDoc = window.siyuan.storage[Constants.LOCAL_DOCINFO];fetchPost("/api/block/checkBlockExist", {id: localDoc.id}, existResponse => {if (existResponse.data) {diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.tsindex 35e1c51726..50742831a7 100644--- a/app/src/protyle/header/Background.ts+++ b/app/src/protyle/header/Background.ts@@ -288,6 +288,9 @@ export class Background {id: protyle.block.rootID,attrs: {"title-img": this.ial["title-img"]}});+ /// #if MOBILE+ window.siyuan.menus.menu.remove();+ /// #endif}, Constants.SIYUAN_ASSETS_IMAGE);event.preventDefault();event.stopPropagation();