reset 回滚代码生成相关修复提交

feature/model
疯狂的狮子li 2 years ago
parent 6281ec0456
commit 2c7663d971

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

Loading…
Cancel
Save