jufubao-admin-library 1.1.127 → 1.1.129
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.
|
@@ -745,10 +745,7 @@ export default {
|
|
|
745
745
|
},
|
|
746
746
|
handleCopy() {
|
|
747
747
|
const input = document.createElement("input");
|
|
748
|
-
input.value = this.getImageUrl(this.
|
|
749
|
-
/^\/\//,
|
|
750
|
-
"https://"
|
|
751
|
-
);
|
|
748
|
+
input.value = this.getImageUrl(input.value = this.getImageUrl(this.compImgSrc.replace(/^\/\//,"https://").split('?')[0]));
|
|
752
749
|
document.body.appendChild(input);
|
|
753
750
|
input.select();
|
|
754
751
|
document.execCommand("copy");
|
|
@@ -1042,13 +1039,9 @@ export default {
|
|
|
1042
1039
|
method: "GET",
|
|
1043
1040
|
responseType: "blob", // 重要:设置响应类型为blob
|
|
1044
1041
|
params: {
|
|
1045
|
-
code_content: this.
|
|
1046
|
-
/^\/\//,
|
|
1047
|
-
"https://"
|
|
1048
|
-
),
|
|
1042
|
+
code_content: this.compImgSrc.replace(/^\/\//,"https://").split('?')[0],
|
|
1049
1043
|
},
|
|
1050
1044
|
}).then((res) => {
|
|
1051
|
-
console.log(res, "res");
|
|
1052
1045
|
let blob;
|
|
1053
1046
|
if (res.data) {
|
|
1054
1047
|
blob = new Blob([res.data], { type: "image/png" });
|