Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/13282

Vanessa24250e4eb30f
diff --git a/app/src/asset/index.ts b/app/src/asset/index.ts
index 506623ef3f..d0cc99e5e8 100644
--- a/app/src/asset/index.ts
+++ b/app/src/asset/index.ts
@@ -73,7 +73,9 @@ export class Asset extends Model {
/// #if !MOBILE
if (typeof pdfId === "string") {
this.getPdfId(() => {
- onPageNumberChanged({value: this.pdfPage, pdfInstance: this.pdfObject, id: this.pdfId});
+ if (this.pdfPage) {
+ onPageNumberChanged({value: this.pdfPage, pdfInstance: this.pdfObject, id: this.pdfId});
+ }
});
return;
}