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