Commit 409fc789 authored by hewenhao's avatar hewenhao

feat: delay

parent 4c0fa8b5
...@@ -36,7 +36,7 @@ Component({ ...@@ -36,7 +36,7 @@ Component({
if (this._loading || !this._hasNextPage) return if (this._loading || !this._hasNextPage) return
this._loading = true this._loading = true
this.setData({ loading: true }) this.setData({ loading: true })
await new Promise(resolve => setTimeout(resolve, 1000)) await new Promise(resolve => setTimeout(resolve, 300))
const { list } = this.data const { list } = this.data
const currentPage = this._currentPage const currentPage = this._currentPage
const nextPage = currentPage + 1 const nextPage = currentPage + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment