This commit is contained in:
gtz217 2022-08-04 09:21:34 +08:00
parent 30e60ec42e
commit 03cfa65525
2 changed files with 12 additions and 8 deletions

View File

@ -130,10 +130,12 @@ export default {
this.queryList.current += 1 this.queryList.current += 1
if (this.isOver) { if (this.isOver) {
this.isOver = !this.isOver this.isOver = !this.isOver
this.getDataList() this.$nextTick(() => {
setTimeout(() => { this.getDataList()
this.isFirstScroll = true setTimeout(() => {
}, 2000) this.isFirstScroll = true
}, 2000)
})
} }
} }
}, },

View File

@ -84,10 +84,12 @@ export default {
this.queryList.current += 1 this.queryList.current += 1
if (this.isOver) { if (this.isOver) {
this.isOver = !this.isOver this.isOver = !this.isOver
this.getDataList() this.$nextTick(() => {
setTimeout(() => { this.getDataList()
this.isFirstScroll = true setTimeout(() => {
}, 2000) this.isFirstScroll = true
}, 2000)
})
} }
} }
}, },