Browse Source

产业为空的时候展示临时标签

xingzai 2 years ago
parent
commit
21e39357c1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      controllers/activity.go

+ 3 - 1
controllers/activity.go

@@ -860,7 +860,9 @@ func (this *ActivityCoAntroller) Detail() {
 			return
 		}
 		if len(industrialList) == 0 {
-			industrialList = make([]*models.IndustrialManagementRep, 0)
+			item := new(models.IndustrialManagementRep)
+			item.IndustryName = activityInfo.Label
+			industrialList = append(industrialList, item)
 		} else {
 			var industrialManagementId string
 			for k, v := range industrialList {