Ver código fonte

big升级 解决 image not exist 问题

haojianlong 4 anos atrás
pai
commit
1aaa871e5f
2 arquivos alterados com 2 adições e 3 exclusões
  1. 1 1
      persagy-web-big/package.json
  2. 1 2
      persagy-web-big/src/utils/unzip.ts

+ 1 - 1
persagy-web-big/package.json

@@ -1,6 +1,6 @@
 {
     "name": "@persagy-web/big",
-    "version": "2.2.35",
+    "version": "2.2.36",
     "description": "博锐尚格建筑信息化库",
     "main": "lib/index.js",
     "types": "lib/index.d.js",

+ 1 - 2
persagy-web-big/src/utils/unzip.ts

@@ -40,15 +40,14 @@ export default function unzip(blob: any): any {
             let binaryString = readerEvt.target.result;
             //解压数据
             let base64Data = btoa(binaryString);
-            let unGzipData = unzipBase64(base64Data);
             try {
+                let unGzipData = unzipBase64(base64Data);
                 const data = unGzipData.entityList
                     ? unGzipData.entityList[0].Elements
                     : unGzipData.EntityList[0].Elements;
                 resolve(data);
             } catch (e) {
                 console.log(e);
-                console.log(unGzipData);
                 resolve("error");
             }
         };