mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 17:55:39 +08:00
--fix bug
This commit is contained in:
@@ -86,12 +86,10 @@ function download() {
|
||||
document.querySelector(".downloadCode"),
|
||||
{ useCORS: true }
|
||||
).then((canvas) => {
|
||||
let filename = `${new Date().getTime()}.png`;
|
||||
let imageUrl = canvas.toDataURL("image/png");
|
||||
let a = document.createElement("a");
|
||||
a.style.display = "none";
|
||||
a.download = filename;
|
||||
a.href = imageUrl;
|
||||
a.download = `${new Date().getTime()}.png`;
|
||||
a.href = canvas.toDataURL("image/png");
|
||||
document.body.appendChild(a);
|
||||
a.click();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user