Skip to content

Commit

Permalink
首页下拉刷新
Browse files Browse the repository at this point in the history
  • Loading branch information
EleTeam committed Oct 13, 2016
1 parent ce15005 commit b784622
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/reducers/homeReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ let homeReducer = (state = initialState, action) => {
case types.kHomeListArticlesReceived:
return {
...state,
articles: action.articles,
//articles: action.articles,
articles: action.articles.length > 0 ? state.articles.concat(action.articles) : state.articles,
isLoading: false,
isRefreshing: false,
};
default:
return state;
Expand Down

0 comments on commit b784622

Please sign in to comment.