lrf402788946 5 년 전
부모
커밋
044e0f4b0c
1개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 8
      src/pages/newsList/views/list.vue

+ 0 - 8
src/pages/newsList/views/list.vue

@@ -72,14 +72,6 @@ export default {
       data.parent_id = news_type === '1' ? item.id : item.content_id;
       data.parent_id = news_type === '1' ? item.id : item.content_id;
       let res = await this.newsOperation({ type: 'list', data: data });
       let res = await this.newsOperation({ type: 'list', data: data });
       if (`${res.errcode}` === '0') {
       if (`${res.errcode}` === '0') {
-        // for (const val of res.data) {
-        //   let result = await this.newsOperation({ type: 'search', data: { id: val.id } });
-        //   if (`${result.errcode}` === '0') {
-        //     val.content = result.data.content;
-        //   } else {
-        //     this.$message.error(result.errmsg ? result.errmsg : 'error');
-        //   }
-        // }
         let infos = await this.getAllNewsInfo(res.data.map(i => i._id));
         let infos = await this.getAllNewsInfo(res.data.map(i => i._id));
         res.data.map(i => {
         res.data.map(i => {
           let content = infos.find(f => f._id === i._id);
           let content = infos.find(f => f._id === i._id);