xyxie hace 9 meses
padre
commit
3c97726922
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      controllers/data_manage/excel/excel_info.go

+ 2 - 0
controllers/data_manage/excel/excel_info.go

@@ -2242,6 +2242,8 @@ func (c *ExcelInfoController) Download() {
 			return
 		}
 	case utils.BALANCE_TABLE: // 混合表格
+		c.Ctx.Output.Header("Content-Disposition", "attachment; filename=excel_files.zip")
+		c.Ctx.Output.Header("Content-Type", "application/zip")
 		savePath, fileName, err, errMsg := DownloadBalanceTable(excelInfo)
 		if err != nil {
 			br.Msg = "下载失败"