From cb4b2f85070b057100bf9c4acca0450e44f367e2 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 11 Jan 2025 21:53:00 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/pull/13761 --- app/src/config/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/config/index.ts b/app/src/config/index.ts index 5662fbddd..0f372ab87 100644 --- a/app/src/config/index.ts +++ b/app/src/config/index.ts @@ -1,3 +1,6 @@ +/// #if MOBILE +import {popMenu} from "../mobile/menu"; +/// #else import {editor} from "./editor"; import {about} from "./about"; import {appearance} from "./appearance"; @@ -17,6 +20,7 @@ import {publish} from "./publish"; import {App} from "../index"; import {isHuawei, isInHarmony} from "../protyle/util/compatibility"; import {Constants} from "../constants"; +/// #endif export const genItemPanel = (type: string, containerElement: Element, app: App) => { switch (type) { @@ -91,6 +95,9 @@ export const genItemPanel = (type: string, containerElement: Element, app: App) }; export const openSetting = (app: App) => { + /// #if MOBILE + popMenu(); + /// #else const exitDialog = window.siyuan.dialogs.find((item) => { if (item.element.querySelector(".config__tab-container")) { item.destroy(); @@ -168,4 +175,5 @@ export const openSetting = (app: App) => { editor.element = dialog.element.querySelector('.config__tab-container[data-name="editor"]'); editor.bindEvent(); return dialog; + /// #endif };