This commit is contained in:
Vanessa 2022-09-09 20:40:35 +08:00
parent cc79e602f4
commit e996975722

View file

@ -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
};