From c856c8725b79b197f668b0790e5156739b21b8be Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 23 Oct 2024 16:14:44 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/11782 --- app/src/mobile/util/initFramework.ts | 3 ++- app/src/plugin/API.ts | 2 +- app/src/types/index.d.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/mobile/util/initFramework.ts b/app/src/mobile/util/initFramework.ts index 152003abe..e90a3733e 100644 --- a/app/src/mobile/util/initFramework.ts +++ b/app/src/mobile/util/initFramework.ts @@ -46,6 +46,7 @@ const openDockMenu = (app: App) => { } } custom = plugin.docks[dockId].mobileModel(document.querySelector('#sidebar [data-type="sidebar-plugin"]')); + window.siyuan.mobile.docks[dockId] = custom } } }); @@ -135,7 +136,7 @@ export const initFramework = (app: App, isStart: boolean) => { } }); }); - window.siyuan.mobile.docks.files = new MobileFiles(app); + window.siyuan.mobile.docks.file = new MobileFiles(app); document.getElementById("toolbarFile").addEventListener("click", () => { hideKeyboardToolbar(); activeBlur(); diff --git a/app/src/plugin/API.ts b/app/src/plugin/API.ts index 1c7529178..8073b4702 100644 --- a/app/src/plugin/API.ts +++ b/app/src/plugin/API.ts @@ -172,7 +172,7 @@ const getModelByDockType = (type: TDock | string) => { /// #else return getDockByType(type).data[type]; /// #endif -} +}; export const API = { adaptHotkey: updateHotkeyTip, diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts index e00f29a2e..044b10a3e 100644 --- a/app/src/types/index.d.ts +++ b/app/src/types/index.d.ts @@ -383,7 +383,7 @@ interface ISiyuan { tag: import("../mobile/dock/MobileTags").MobileTags | null, backlink: import("../mobile/dock/MobileBacklinks").MobileBacklinks | null, inbox: import("../layout/dock/Inbox").Inbox | null, - } & { [key: string]: import("../layout/Model").Model | boolean }; + } & { [key: string]: import("../layout/Model").Model | any }; }, user?: { userId: string