Authored by 郭成尧

item-TypeError

@@ -33,7 +33,7 @@ module.exports = class extends global.yoho.BaseModel { @@ -33,7 +33,7 @@ module.exports = class extends global.yoho.BaseModel {
33 }); 33 });
34 34
35 _.map(list, function(item, key) { 35 _.map(list, function(item, key) {
36 - item.focus = key === channel; 36 + _.set(item, 'focus', key === channel);
37 37
38 _.map(item, function(firstItem) { 38 _.map(item, function(firstItem) {
39 // 如果有二级菜单,二级菜单跳转,否则一级菜单跳转 39 // 如果有二级菜单,二级菜单跳转,否则一级菜单跳转