xiziwen il y a 4 mois
Parent
commit
bf1fd39f79
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      controllers/ppt_v2.go

+ 1 - 1
controllers/ppt_v2.go

@@ -176,7 +176,7 @@ func (this *PptV2Controller) AddPpt() {
 		}
 		msg = "新增成功"
 
-		excelReferences := make([]*excel.ReferencedExcelConfig, len(req.ExcelReferences))
+		excelReferences := make([]*excel.ReferencedExcelConfig, 0)
 		for _, r := range req.ExcelReferences {
 			refItem := excel.ReferencedExcelConfig{
 				UniqueCode:   r.UniqueCode,