|
@@ -305,7 +305,7 @@ const detailData = (params) => { |
|
@@ -305,7 +305,7 @@ const detailData = (params) => { |
305
|
return Promise.all(promiseData).then(result => {
|
305
|
return Promise.all(promiseData).then(result => {
|
306
|
let newData = _processDetailData(result, params);
|
306
|
let newData = _processDetailData(result, params);
|
307
|
|
307
|
|
308
|
- newData.data.hotSearch = _.slice(result[0].data, 0, 5);
|
308
|
+ _.set(newData, 'data.hotSearch', _.slice(_.get(result, '[0].data', {}), 0, 5));
|
309
|
return newData;
|
309
|
return newData;
|
310
|
});
|
310
|
});
|
311
|
};
|
311
|
};
|
|
@@ -315,7 +315,7 @@ const searchData = (params) => { |
|
@@ -315,7 +315,7 @@ const searchData = (params) => { |
315
|
return helpApi.helpSearch(params).then(result => {
|
315
|
return helpApi.helpSearch(params).then(result => {
|
316
|
return _.assign({
|
316
|
return _.assign({
|
317
|
keywords: params.keywords
|
317
|
keywords: params.keywords
|
318
|
- }, _processSearch(result.data.data, params));
|
318
|
+ }, _processSearch(_.get(result, 'data.data', []), params));
|
319
|
});
|
319
|
});
|
320
|
};
|
320
|
};
|
321
|
|
321
|
|