mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
Merge branch 'zcwy-zsx0223'
This commit is contained in:
@@ -90,7 +90,10 @@ onMounted(() => props.duration && setTimeout(() => props.close(), props.duration
|
|||||||
function download() {
|
function download() {
|
||||||
html2canvas(
|
html2canvas(
|
||||||
document.querySelector(".downloadCode"),
|
document.querySelector(".downloadCode"),
|
||||||
{ useCORS: true }
|
{ useCORS: true,
|
||||||
|
allowTaint: true,
|
||||||
|
logging: true,
|
||||||
|
}
|
||||||
).then((canvas) => {
|
).then((canvas) => {
|
||||||
let a = document.createElement("a");
|
let a = document.createElement("a");
|
||||||
a.style.display = "none";
|
a.style.display = "none";
|
||||||
@@ -98,7 +101,7 @@ function download() {
|
|||||||
a.href = canvas.toDataURL("image/png");
|
a.href = canvas.toDataURL("image/png");
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
});
|
}).catch((err) => console.log('html2canvas',err));
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyUrl() {
|
function copyUrl() {
|
||||||
|
|||||||
Reference in New Issue
Block a user