An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:rotating_light:
Vanessa9531bdd01c47
diff --git a/app/src/asset/renderAssets.ts b/app/src/asset/renderAssets.tsindex 16f1a45df3..4d4726f844 100644--- a/app/src/asset/renderAssets.ts+++ b/app/src/asset/renderAssets.ts@@ -19,21 +19,24 @@ export const renderAssetsPreview = (pathString: string) => {};export const pdfResize = () => {- getAllModels().asset.find(item => {- const pdfInstance = item.pdfObject- const {pdfDocument, pdfViewer} = pdfInstance+ getAllModels().asset.forEach(item => {+ const pdfInstance = item.pdfObject;+ if (!pdfInstance) {+ return;+ }+ const {pdfDocument, pdfViewer} = pdfInstance;if (!pdfDocument) {- return+ return;}- const currentScaleValue = pdfViewer.currentScaleValue+ const currentScaleValue = pdfViewer.currentScaleValue;if (- currentScaleValue === 'auto' ||- currentScaleValue === 'page-fit' ||- currentScaleValue === 'page-width'+ currentScaleValue === "auto" ||+ currentScaleValue === "page-fit" ||+ currentScaleValue === "page-width") {// Note: the scale is constant for 'page-actual'.- pdfViewer.currentScaleValue = currentScaleValue+ pdfViewer.currentScaleValue = currentScaleValue;}- pdfViewer.update()- })-}+ pdfViewer.update();+ });+};