Authored by yyq

fix nice list

@@ -349,7 +349,7 @@ export default { @@ -349,7 +349,7 @@ export default {
349 result.data.detailList = []; 349 result.data.detailList = [];
350 } 350 }
351 commit(Types.FETCH_NICE_GOODS_SUCCESS, { 351 commit(Types.FETCH_NICE_GOODS_SUCCESS, {
352 - data: result.data.detailList, 352 + data: result.data,
353 page, 353 page,
354 thumb 354 thumb
355 }); 355 });
@@ -385,7 +385,7 @@ export default { @@ -385,7 +385,7 @@ export default {
385 [Types.FETCH_NICE_GOODS_SUCCESS](state, {data, thumb}) { 385 [Types.FETCH_NICE_GOODS_SUCCESS](state, {data, thumb}) {
386 state.fetchArticleNiceList = false; 386 state.fetchArticleNiceList = false;
387 state.articleLastedTimeByNice = data.lastedTime; 387 state.articleLastedTimeByNice = data.lastedTime;
388 - setArticleList(state, data, 'niceGoods', thumb); 388 + setArticleList(state, data.detailList || [], 'niceGoods', thumb);
389 }, 389 },
390 [Types.FETCH_NICE_GOODS_FAILD](state) { 390 [Types.FETCH_NICE_GOODS_FAILD](state) {
391 state.fetchArticleNiceList = false; 391 state.fetchArticleNiceList = false;