pageNum -> current

This commit is contained in:
gtz217 2022-08-04 09:14:52 +08:00
parent 2f8eb94bf9
commit 30e60ec42e
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ export default {
let listHeight = clientHeight - headerHeight // list let listHeight = clientHeight - headerHeight // list
if (scrollTop - (scrollHeight - listHeight) >= -80 && this.isFirstScroll) { if (scrollTop - (scrollHeight - listHeight) >= -80 && this.isFirstScroll) {
this.isFirstScroll = false this.isFirstScroll = false
this.pageNum += 1 this.queryList.current += 1
if (this.isOver) { if (this.isOver) {
this.isOver = !this.isOver this.isOver = !this.isOver
this.getDataList() this.getDataList()

View File

@ -81,7 +81,7 @@ export default {
let listHeight = clientHeight - headerHeight // list let listHeight = clientHeight - headerHeight // list
if (scrollTop - (scrollHeight - listHeight) >= -80 && this.isFirstScroll) { if (scrollTop - (scrollHeight - listHeight) >= -80 && this.isFirstScroll) {
this.isFirstScroll = false this.isFirstScroll = false
this.pageNum += 1 this.queryList.current += 1
if (this.isOver) { if (this.isOver) {
this.isOver = !this.isOver this.isOver = !this.isOver
this.getDataList() this.getDataList()