|
@@ -44,11 +44,12 @@ export default {
|
|
|
const elink = document.createElement("a");
|
|
|
elink.download = `停电预设模版.xlsx`;
|
|
|
elink.style.display = "none";
|
|
|
- const blob = new Blob([res], { type: "application/x-msdownload" });
|
|
|
+ const blob = new Blob([res], { type: "application/vnd.ms-excel" });
|
|
|
elink.href = URL.createObjectURL(blob);
|
|
|
document.body.appendChild(elink);
|
|
|
elink.click();
|
|
|
document.body.removeChild(elink);
|
|
|
+ window.URL.revokeObjectURL(url)
|
|
|
} else {
|
|
|
this.$message.error("导出异常请联系管理员");
|
|
|
}
|