From 18a80b02c4dd298b5750d56fb691e426401ac383 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 9 Jan 2024 20:57:12 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10128 --- app/src/menus/navigation.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/menus/navigation.ts b/app/src/menus/navigation.ts index bfc58d6fc..540994629 100644 --- a/app/src/menus/navigation.ts +++ b/app/src/menus/navigation.ts @@ -28,6 +28,7 @@ import {openEditorTab} from "./util"; import {makeCard} from "../card/makeCard"; import {transaction} from "../protyle/wysiwyg/transaction"; import {emitOpenMenu} from "../plugin/EventBus"; +import {openByMobile} from "../protyle/util/compatibility"; const initMultiMenu = (selectItemElements: NodeListOf, app: App) => { const fileItemElement = Array.from(selectItemElements).find(item => { @@ -322,7 +323,7 @@ export const initNavigationMenu = (app: App, liElement: HTMLElement) => { path: "/" }, response => { hideMessage(msgId); - window.open(response.data.zip); + openByMobile(response.data.zip); }); } }, { @@ -334,7 +335,7 @@ export const initNavigationMenu = (app: App, liElement: HTMLElement) => { id: notebookId, }, response => { hideMessage(msgId); - window.open(response.data.zip); + openByMobile(response.data.zip); }); } }]