From e996975722ce598437706981094803cce3e2e631 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 9 Sep 2022 20:40:35 +0800 Subject: [PATCH] :zap: --- app/src/asset/renderAssets.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/asset/renderAssets.ts b/app/src/asset/renderAssets.ts index 4d4726f84..9a41cc87f 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 };