@gct-paas/core 0.1.4-dev.17 → 0.1.4-dev.18
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.
|
@@ -58,8 +58,7 @@ function downloadByData(data, { filename = "file", timestamp = false, mime, bom
|
|
|
58
58
|
const ext = filename.split(".").pop();
|
|
59
59
|
filename = `${filename.replace(/\.[^/.]+$/, "")}${dayjs(/* @__PURE__ */ new Date()).format("YYYYMMDDHHmmss")}.${ext}`;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
62
|
-
const blob = new Blob(blobData, { type: mime || "application/octet-stream" });
|
|
61
|
+
const blob = new Blob(typeof bom !== "undefined" ? [bom, data] : [data], { type: mime || "application/octet-stream" });
|
|
63
62
|
const blobURL = window.URL.createObjectURL(blob);
|
|
64
63
|
const tempLink = document.createElement("a");
|
|
65
64
|
tempLink.style.display = "none";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core",
|
|
3
|
-
"version": "0.1.4-dev.
|
|
3
|
+
"version": "0.1.4-dev.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台核心包",
|
|
6
6
|
"loader": "dist/index.esm.min.js",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"vue-i18n": ">=11",
|
|
77
77
|
"vue-router": ">=4"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "d79e561695bc9a4ff14b7c1bc735a595a32ed3e9"
|
|
80
80
|
}
|