Skip to content

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

:zap: https://github.com/siyuan-note/siyuan/issues/5809

Vanessae38eea5f962c
diff --git a/app/src/layout/Wnd.ts b/app/src/layout/Wnd.ts
index 2363f7db13..319c881ee7 100644
--- a/app/src/layout/Wnd.ts
+++ b/app/src/layout/Wnd.ts
@@ -523,6 +523,11 @@ export class Wnd {
}
return;
}
+ if (model instanceof Asset) {
+ if (model.pdfObject) {
+ model.pdfObject.pdfLoadingTask.destroy();
+ }
+ }
model.send("closews", {});
}