From b99bedf1ef39e6f90681b7eb0e358d2f4f0dfdd1 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 21 May 2023 21:08:50 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/8320 --- app/src/mobile/index.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/mobile/index.ts b/app/src/mobile/index.ts index 40e8f9b62..0475cbb56 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(); } }