统一前端导出数据

This commit is contained in:
不做码农
2021-12-12 13:34:33 +08:00
parent a0e1276bdf
commit 6c89894f66
4 changed files with 47 additions and 53 deletions

View File

@@ -95,7 +95,6 @@ import {
delTable,
previewTable,
} from "@/api/tool/gen";
import { downloadFile } from "@/utils/zipdownload.js";
import importTable from "./importTable";
import { Loading } from "element-ui";
import hljs from "highlight.js";
@@ -230,10 +229,7 @@ export default {
if (code == 200) {
this.showGenerate = false;
this.msgSuccess("恭喜你,代码生成完成!");
downloadFile(
process.env.VUE_APP_BASE_API + data.zipPath,
data.fileName
);
this.download(data.fileName);
} else {
this.msgError(res.msg);
}