Skip to content

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

:zap:

Vanessae996975722ce
diff --git a/app/src/asset/renderAssets.ts b/app/src/asset/renderAssets.ts
index 4d4726f844..9a41cc87ff 100644
--- a/app/src/asset/renderAssets.ts
+++ b/app/src/asset/renderAssets.ts
@@ -1,6 +1,8 @@
import {Constants} from "../constants";
-import {pathPosix} from "../util/pathName";
+/// #if !MOBILE
import {getAllModels} from "../layout/getAll";
+/// #endif
+import {pathPosix} from "../util/pathName";
export const renderAssetsPreview = (pathString: string) => {
if (!pathString) {
@@ -19,6 +21,7 @@ export const renderAssetsPreview = (pathString: string) => {
};
export const pdfResize = () => {
+ /// #if !MOBILE
getAllModels().asset.forEach(item => {
const pdfInstance = item.pdfObject;
if (!pdfInstance) {
@@ -39,4 +42,5 @@ export const pdfResize = () => {
}
pdfViewer.update();
});
+ /// #endif
};