From 52f8edb5c599cf373b7683d855e878b150567373 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 21 Nov 2025 09:52:40 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/16385 --- app/src/menus/commonMenuItem.ts | 6 +++--- app/src/types/index.d.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/menus/commonMenuItem.ts b/app/src/menus/commonMenuItem.ts index 25b39f2e1..330b107b5 100644 --- a/app/src/menus/commonMenuItem.ts +++ b/app/src/menus/commonMenuItem.ts @@ -770,11 +770,11 @@ export const exportMd = (id: string) => { const servePath = window.location.protocol + "//" + window.location.host + "/"; const html = await onExport(response, undefined, servePath, {type: "pdf", id}); if (isInAndroid()) { - window.JSAndroid.print(html); + window.JSAndroid.print(response.data.name, html); } else if (isInHarmony()) { - window.JSHarmony.print(html); + window.JSHarmony.print(response.data.name, html); } else if (isInIOS()) { - window.webkit.messageHandlers.print.postMessage(html); + window.webkit.messageHandlers.print.postMessage(response.data.name + Constants.ZWSP + html); } setTimeout(() => { diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts index 57663049d..fd3ef4573 100644 --- a/app/src/types/index.d.ts +++ b/app/src/types/index.d.ts @@ -249,7 +249,7 @@ interface Window { readHTMLClipboard(): string getBlockURL(): string hideKeyboard(): void - print(html: string): void + print(title: string, html: string): void getScreenWidthPx(): number }; JSHarmony: { @@ -261,7 +261,7 @@ interface Window { readClipboard(): string readHTMLClipboard(): string returnDesktop(): void - print(html: string): void + print(title: string, html: string): void getScreenWidthPx(): number };