Skip to content

Commit

Permalink
Merge pull request #65 from tolking/fix-rescue
Browse files Browse the repository at this point in the history
fix: 救助站无法加载更多数据
  • Loading branch information
bobohuochai authored Nov 15, 2021
2 parents 693635c + 217d314 commit 6c9fe21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ListRescueCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/>
</view>
<view class="rescue-card-listContent">
<scroll-view :scroll-y="true" style="height: 1200rpx;" @scrolltoupper="upper" @scrolltolower="lower" :scroll-into-view="toView" :scroll-top="scrollTop">
<scroll-view :scroll-y="true" style="height: 1200rpx;" @scrolltoupper="upper" @scrolltolower="lower">
<AtList
v-for="(item, index) in rescueCards"
:key="index"
Expand Down Expand Up @@ -200,7 +200,7 @@ export default defineComponent({
let page = this.currentPage + 1
listRescue(page).then((res) => {
if (res.data.length > 0) {
this.rescueCards.concat(res.data);
this.rescueCards = this.rescueCards.concat(res.data);
this.currentPage = page
}
});
Expand Down

0 comments on commit 6c9fe21

Please sign in to comment.