Authored by LiQZ

增加空判断

@@ -167,6 +167,7 @@ var Bll = { @@ -167,6 +167,7 @@ var Bll = {
167 } 167 }
168 for(var key2 in res.data.brands[key]){ 168 for(var key2 in res.data.brands[key]){
169 var item=res.data.brands[key][key2]; 169 var item=res.data.brands[key][key2];
  170 + if (!item) { continue; }
170 Brand[name] = Brand[name] || []; 171 Brand[name] = Brand[name] || [];
171 Brand[name].push(item); 172 Brand[name].push(item);
172 Bll.Brands1[item.id] = item; 173 Bll.Brands1[item.id] = item;