更改滚动事件

This commit is contained in:
Zy
2026-07-08 17:30:40 +08:00
parent 95db93626a
commit aecf448eae
2 changed files with 9 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
* @Author: Zy * @Author: Zy
* @Date: 2026-05-18 15:36:10 * @Date: 2026-05-18 15:36:10
* @LastEditor: Zy * @LastEditor: Zy
* @LastEditTime: 2026-06-29 08:28:25 * @LastEditTime: 2026-07-08 17:26:41
*/ */
let baseUrl = '' let baseUrl = ''

View File

@@ -142,7 +142,14 @@ function getlist() {
onShow(() => { onShow(() => {
getlist() getlist()
}) })
function scrolltolower() {
// 必须加这两个判断!
if (isLoading.value || !hasMore.value) {
return
}
queryParmas.value.pageNum += 1
getlist()
}
function resetList() { function resetList() {
searchlist.value = [] searchlist.value = []
queryParmas.value.pageNum = 1 queryParmas.value.pageNum = 1