!125 bugfix:修复vue2版本导出undefined问题
Merge pull request !125 from zhkwork/master
This commit is contained in:
commit
8a168cd33f
@ -306,8 +306,8 @@ export default {
|
|||||||
await this.#[[$modal]]#.confirm('是否确认导出所有${table.classComment}数据项?');
|
await this.#[[$modal]]#.confirm('是否确认导出所有${table.classComment}数据项?');
|
||||||
try {
|
try {
|
||||||
this.exportLoading = true;
|
this.exportLoading = true;
|
||||||
const res = await ${simpleClassName}Api.export${simpleClassName}Excel(this.queryParams);
|
const data = await ${simpleClassName}Api.export${simpleClassName}Excel(this.queryParams);
|
||||||
this.#[[$]]#download.excel(res.data, '${table.classComment}.xls');
|
this.#[[$]]#download.excel(data, '${table.classComment}.xls');
|
||||||
} catch {
|
} catch {
|
||||||
} finally {
|
} finally {
|
||||||
this.exportLoading = false;
|
this.exportLoading = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user