feat:导出返回数据改为文件流

This commit is contained in:
不做码农
2022-12-05 18:37:40 +08:00
parent 6611f513f3
commit f5c0588f42
5 changed files with 34 additions and 13 deletions

View File

@@ -215,7 +215,7 @@ namespace ZR.Admin.WebApi.Controllers.System
//调试模式需要加上
string sFileName = ExportExcel(list.Result, "user", "用户列表");
return SUCCESS(new { path = "/export/" + sFileName, fileName = sFileName });
return ExportExcel("export", sFileName);
}
}
}