修改下拉
This commit is contained in:
@@ -113,7 +113,13 @@ const total = ref(0)
|
||||
|
||||
function getlist() {
|
||||
// 1. 如果正在加载或没有更多数据,直接返回
|
||||
if (isLoading.value || !hasMore.value) return
|
||||
if (isLoading.value || !hasMore.value) {
|
||||
if (isRefresh) {
|
||||
uni.stopPullDownRefresh()
|
||||
isRefresh = false
|
||||
}
|
||||
return
|
||||
}
|
||||
// 2. 开启锁
|
||||
isLoading.value = true
|
||||
const { pageNum, pageSize, date, status } = queryParmas.value
|
||||
|
||||
@@ -99,7 +99,13 @@ const hasMore = ref(true) // 是否还有更多数据
|
||||
const total = ref(0)
|
||||
|
||||
function getlist() {
|
||||
if (isLoading.value || !hasMore.value) return
|
||||
if (isLoading.value || !hasMore.value) {
|
||||
if (isRefresh) {
|
||||
uni.stopPullDownRefresh()
|
||||
isRefresh = false
|
||||
}
|
||||
return
|
||||
}
|
||||
isLoading.value = true
|
||||
|
||||
const { pageNum, pageSize, date, status } = queryParmas.value
|
||||
|
||||
Reference in New Issue
Block a user