|
|
@@ -225,17 +225,17 @@ export default {
|
|
|
let link = document.createElement("a");
|
|
|
let body = document.querySelector("body");
|
|
|
|
|
|
- // link.href = URL.createObjectURL(blob);
|
|
|
- // link.download = filename;
|
|
|
- //
|
|
|
- // // fix Firefox
|
|
|
- // link.style.display = "none";
|
|
|
- // body.appendChild(link);
|
|
|
- //
|
|
|
- // link.click();
|
|
|
- // body.removeChild(link);
|
|
|
- //
|
|
|
- // window.URL.revokeObjectURL(link.href);
|
|
|
+ link.href = URL.createObjectURL(blob);
|
|
|
+ link.download = filename;
|
|
|
+
|
|
|
+ // fix Firefox
|
|
|
+ link.style.display = "none";
|
|
|
+ body.appendChild(link);
|
|
|
+
|
|
|
+ link.click();
|
|
|
+ body.removeChild(link);
|
|
|
+
|
|
|
+ window.URL.revokeObjectURL(link.href);
|
|
|
}
|
|
|
},
|
|
|
// 事件
|