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
if (this.isOver) {
this.isOver = !this.isOver
this.getDataList()
setTimeout(() => {
this.isFirstScroll = true
}, 2000)
this.$nextTick(() => {
this.getDataList()
setTimeout(() => {
this.isFirstScroll = true
}, 2000)
})
}
}
},

View File

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