Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(feed): 热门动态加载更多接口修正
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Sep 18, 2018
1 parent 5c58137 commit 35038ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/page/feed/FeedList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default {
const len = this.feeds.length;
if (!len) return 0;
if (this.feedType !== "hot") return this.feeds[len - 1].id; // after
return this.$store.getters[`feed/hot`].length; // offset
return this.feeds[len - 1].hot; // offset
}
},
watch: {
Expand Down
2 changes: 1 addition & 1 deletion src/stores/module/feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const actions = {
*/
async getHotFeeds({ commit, state }, payload) {
const { after, refresh = false } = payload;
const { data } = await api.getFeeds({ type: "hot", offset: after });
const { data } = await api.getFeeds({ type: "hot", hot: after });
const { feeds = [], pinned = [] } = data;
commit(TYPES.SAVE_PINNED_LIST, { list: pinned });
commit(TYPES.SAVE_FEED_LIST, { type: "hot", data: feeds, refresh });
Expand Down

1 comment on commit 35038ff

@mutoe
Copy link
Contributor Author

@mutoe mutoe commented on 35038ff Sep 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refer #514

Please sign in to comment.