gis-common 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1355,10 +1355,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1355
1355
  url = URL.createObjectURL(data); // 创建blob地址
1356
1356
  } else {
1357
1357
  var str = JSON.stringify(data);
1358
- url = new Blob([str], { type: 'text/json' }); // json对象
1358
+ var blob = new Blob([str], { type: 'text/json' }); // json对象
1359
+ url = window.URL.createObjectURL(blob);
1359
1360
  }
1360
1361
  } else if (typeof data == 'string') {
1361
- url = new Blob([data], { type: 'text/json' }); //json文本
1362
+ var _blob = new Blob([data], { type: 'text/json' }); //json文本
1363
+ url = window.URL.createObjectURL(_blob);
1362
1364
  }
1363
1365
  var link = document.createElement('a');
1364
1366
  link.href = url;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "gis-common",
3
3
  "description": "gis-common",
4
4
  "main": "dist/resource.min.js",
5
- "version": "1.1.4",
5
+ "version": "1.1.5",
6
6
  "author": "Guo.Yan <luv02@vip.qq.com>",
7
7
  "license": "MIT",
8
8
  "private": false,