|
@@ -218,12 +218,14 @@ class ChatService extends CrudService {
|
|
|
for (const el of applys) {
|
|
|
const goodlists = el.goodsList;
|
|
|
const goodlist = _.filter(goodlists, function(o) {
|
|
|
- return _.includes(o.name, name);
|
|
|
+ const oo = _.includes(o.name, name);
|
|
|
+ console.log(oo);
|
|
|
+ return oo;
|
|
|
});
|
|
|
- data.concat(goodlist);
|
|
|
+ data.push(goodlist);
|
|
|
}
|
|
|
}
|
|
|
- return data;
|
|
|
+ return _.flatten(data);
|
|
|
}
|
|
|
}
|
|
|
|