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

Commit

Permalink
fix(广告): 动态详情页顶部 banner 广告排序问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jul 13, 2018
1 parent 6ead189 commit fc88253
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/page/feed/FeedList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export default {
bootApi
.getAdsByIds([this.bannerAdsId, this.feedCardAdsId])
.then(({ data }) => {
data = data.sort((a, b) => a.sort < b.sort);
this.bannerAds = data.filter(ad => ad.space_id == this.bannerAdsId);
this.feedCardAds = data.filter(
ad => ad.space_id == this.feedCardAdsId
Expand Down

0 comments on commit fc88253

Please sign in to comment.