From 45216652746fb8a5c1099a7e4daffc324690d129 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 13 Feb 2025 15:27:38 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14052 --- app/src/editor/openLink.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/editor/openLink.ts b/app/src/editor/openLink.ts index 29eee6a52..fc9858a31 100644 --- a/app/src/editor/openLink.ts +++ b/app/src/editor/openLink.ts @@ -28,6 +28,7 @@ export const openLink = (protyle: IProtyle, aLink: string, event?: MouseEvent, c if (Constants.SIYUAN_ASSETS_EXTS.includes(pathPosix().extname(linkAddress)) && ( !linkAddress.endsWith(".pdf") || + // 本地 pdf 仅 assets/ 开头的才使用 siyuan 打开 (linkAddress.endsWith(".pdf") && linkAddress.startsWith("assets/")) ) ) {