Skip to content

Commit

Permalink
v2.5.3-setLocalPaging方法添加请求结束promise
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileZXLee committed Feb 13, 2023
1 parent 81e120c commit 9efe6c4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ export default {
totalLocalPagingList: [],
dataPromiseResultMap: {
reload: null,
complete: null
complete: null,
localPaging: null
},
isSettingCacheList: false,
pageNo: 1,
Expand Down Expand Up @@ -338,6 +339,9 @@ export default {
this.$nextTick(() => {
this._addData(data, success, true);
})
return new Promise((resolve, reject) => {
this.dataPromiseResultMap.localPaging = { resolve, reject };
});
},
//重新加载分页数据,pageNo会恢复为默认值,相当于下拉刷新的效果(animate为true时会展示下拉刷新动画,默认为false)
reload(animate = this.showRefresherWhenReload) {
Expand Down

0 comments on commit 9efe6c4

Please sign in to comment.