当自动化代码报错时不下载

This commit is contained in:
pixel
2020-11-02 11:02:25 +08:00
parent 024f461e94
commit 511a187f49
2 changed files with 4 additions and 1 deletions

View File

@@ -274,6 +274,9 @@ export default {
return false;
}
const data = await createTemp(this.form);
if(data.headers?.success == "false"){
return
}
const blob = new Blob([data]);
const fileName = "ginvueadmin.zip";
if ("download" in document.createElement("a")) {