|
@@ -246,8 +246,9 @@ export default {
|
|
|
},
|
|
|
//根据条件获取信息
|
|
|
async getNewsList(item, news_type) {
|
|
|
- let data = { skip: 0, limit: 4, news_type: news_type };
|
|
|
- data.parent_id = item.id;
|
|
|
+ console.log(item);
|
|
|
+ let data = { skip: 0, limit: 6, news_type: news_type };
|
|
|
+ data.parent_id = item.type === 'bugList' ? item.content_id : item.id;
|
|
|
let res = await this.newsOperation({ type: 'list', data: data });
|
|
|
if (`${res.errcode}` === '0') {
|
|
|
for (const val of res.data) {
|