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.
- package/dist/resource.min.js +4 -2
- package/package.json +1 -1
package/dist/resource.min.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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;
|