|
|
@ -195,6 +195,7 @@ public class GenController extends BaseController {
|
|
|
|
* 生成zip文件
|
|
|
|
* 生成zip文件
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private void genCode(HttpServletResponse response, byte[] data) throws IOException {
|
|
|
|
private void genCode(HttpServletResponse response, byte[] data) throws IOException {
|
|
|
|
|
|
|
|
response.reset();
|
|
|
|
response.addHeader("Access-Control-Allow-Origin", "*");
|
|
|
|
response.addHeader("Access-Control-Allow-Origin", "*");
|
|
|
|
response.addHeader("Access-Control-Expose-Headers", "Content-Disposition");
|
|
|
|
response.addHeader("Access-Control-Expose-Headers", "Content-Disposition");
|
|
|
|
response.setHeader("Content-Disposition", "attachment; filename=\"ruoyi.zip\"");
|
|
|
|
response.setHeader("Content-Disposition", "attachment; filename=\"ruoyi.zip\"");
|
|
|
|