Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/8320

Vanessab99bedf1ef39
diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.ts
index 40e8f9b623..0475cbb565 100644
--- a/app/src/mobile/index.ts
+++ b/app/src/mobile/index.ts
@@ -35,6 +35,7 @@ class App {
addScript(`${Constants.PROTYLE_CDN}/js/protyle-html.js?v=${Constants.SIYUAN_VERSION}`, "protyleWcHtmlScript");
addBaseURL();
window.siyuan = {
+ notebooks: [],
transactions: [],
reqIds: {},
backStack: [],
@@ -75,10 +76,12 @@ class App {
window.siyuan.user = userResponse.data;
fetchPost("/api/system/getEmojiConf", {}, emojiResponse => {
window.siyuan.emojis = emojiResponse.data as IEmoji[];
- initFramework(this);
- initRightMenu(this);
- loadPlugins(this);
- openChangelog();
+ setNoteBook(() => {
+ initFramework(this);
+ initRightMenu(this);
+ loadPlugins(this);
+ openChangelog();
+ });
});
});
addGA();
@@ -90,7 +93,6 @@ class App {
handleTouchEnd(this, event);
}, false);
});
- setNoteBook();
promiseTransactions();
}
}