|
@@ -27,11 +27,17 @@ export const actions = {
|
|
|
data.news_type = `1`;
|
|
|
data.parent_id = item.id;
|
|
|
}
|
|
|
- res.push(dispatch('getNews', { type: 'bugList', data }));
|
|
|
+ res.push(
|
|
|
+ dispatch('getNews', {
|
|
|
+ type: 'bugList',
|
|
|
+ data,
|
|
|
+ })
|
|
|
+ );
|
|
|
}
|
|
|
return res;
|
|
|
};
|
|
|
let result = await axios.all(toGet());
|
|
|
+ //降维
|
|
|
let arr = _.flattenDeep(_.flattenDeep(result).map(item => item.data));
|
|
|
return arr;
|
|
|
},
|