Skip to content

Commit

Permalink
fix(SPA): 修复动态列表出现两次的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Mar 4, 2019
1 parent b9ad1fc commit 82d2a27
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions resources/spa/src/page/feed/FeedList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@onRefresh="onRefresh"
@onLoadMore="onLoadMore"
>
<ul class="feed-list">
<ul v-gif-play class="feed-list">
<li
v-for="(feed, index) in pinned"
v-if="feed.id"
Expand All @@ -31,42 +31,6 @@
</JoLoadMore>
</main>

<JoLoadMore
ref="loadmore"
:auto-load="true"
class="p-feed-main"
@onRefresh="onRefresh"
@onLoadMore="onLoadMore"
>
<ul v-gif-play class="p-feed-list">
<li
v-for="(feed, index) in pinned"
v-if="feed.id"
:key="`pinned-feed-${feedType}-${feed.id}-${index}`"
:data-feed-id="feed.id"
>
<FeedCard
:feed="feed"
:pinned="true"
/>
</li>
<li
v-for="(card, index) in feeds"
:key="`feed-${feedType}-${card.id}-${index}`"
:data-feed-id="card.id"
>
<FeedCard
v-if="card.user_id"
:feed="card"
/>
<FeedAdCard
v-if="card.space_id"
:ad="card"
/>
</li>
</ul>
</JoLoadMore>

<FootGuide />
</div>
</template>
Expand Down

0 comments on commit 82d2a27

Please sign in to comment.