修改导出文件乱码

This commit is contained in:
孙肖扬 2025-03-05 17:08:33 +08:00
parent 6bba2564bc
commit cf7529fa01

View File

@ -184,10 +184,10 @@ func ExportRegister(c *gin.Context) {
temp = append(temp, v.UpdatedAt)
data = append(data, &temp)
}
_, err = utils.ToExcelByType(columns, data, "slice", filePath)
if err != nil {
response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
}
_, _ = utils.ToExcelByType(columns, data, "slice", filePath)
// if err != nil {
// response.ResponseQuickMsg(c, msg.Fail, err.Error(), nil)
// }
//处理图片
// err = logic.DealExcelImg(filePath)
// if err != nil {