loadMore防止重复调用用
This commit is contained in:
parent
46bf40b578
commit
1138b26af4
|
|
@ -797,7 +797,7 @@ class ListNode extends Node {
|
|||
async loadMore() {
|
||||
const { filters, sorters, pagination, entity } = this;
|
||||
const { pageSize, more, currentPage, count } = pagination;
|
||||
if (!more) {
|
||||
if (!more || this.loadingMore) {
|
||||
return;
|
||||
}
|
||||
// 要根据total来计算下一页
|
||||
|
|
|
|||
|
|
@ -800,7 +800,7 @@ class ListNode extends Node {
|
|||
async loadMore() {
|
||||
const { filters, sorters, pagination, entity } = this;
|
||||
const { pageSize, more, currentPage, count } = pagination;
|
||||
if (!more) {
|
||||
if (!more || this.loadingMore) {
|
||||
return;
|
||||
}
|
||||
// 要根据total来计算下一页
|
||||
|
|
|
|||
|
|
@ -980,7 +980,7 @@ class ListNode<
|
|||
async loadMore() {
|
||||
const { filters, sorters, pagination, entity } = this;
|
||||
const { pageSize, more, currentPage, count } = pagination;
|
||||
if (!more) {
|
||||
if (!more || this.loadingMore) {
|
||||
return;
|
||||
}
|
||||
// 要根据total来计算下一页
|
||||
|
|
|
|||
Loading…
Reference in New Issue