guhongwei hace 5 años
padre
commit
f0a653a2eb
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/views/index/index.vue

+ 3 - 2
src/views/index/index.vue

@@ -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) {