update 重构 将下载excel工具提取到全局

This commit is contained in:
疯狂的狮子li
2021-08-23 18:28:33 +08:00
parent dea627f02c
commit f91ebd93d2
12 changed files with 14 additions and 24 deletions

View File

@ -170,7 +170,6 @@
<script>
import { listDemo, pageDemo, getDemo, delDemo, addDemo, updateDemo } from "@/api/demo/demo";
import { downLoadExcel } from "@/utils/download";
export default {
name: "Demo",
@ -361,7 +360,7 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
downLoadExcel('/demo/demo/export', this.queryParams);
this.downLoadExcel('/demo/demo/export', this.queryParams);
}
}
};