Merge pull request 'fix/updatesyspic' (#245) from fix/updatesyspic into test

Reviewed-on: #245
pull/250/head
yaoshuli 1 year ago
commit 78cd69fe7d

@ -607,7 +607,6 @@ async function refreshHandler(filtersearchId?: any) {
useInfiniteScroll(
el as any,
() => {
console.log('加载了333333333333333333333333---------------------------')
loadMore()
},
{ distance: 10, canLoadMore: () => canloadMore },
@ -621,25 +620,9 @@ watch(() => show.value, async (newVal) => {
pagination.pageNo = 1
const list = await featchList()
listData.value = list
console.log('加载了1111111111111---------------------------', listData.value)
layout()
}
})
watch(() => pagination.pageNo, (newVal, oldVal) => {
console.log('加载了22222222222222222---------------------------', newVal, oldVal, canloadMore)
if (newVal == oldVal)
return
if ((newVal == 1 || newVal == 2) && canloadMore) {
setTimeout(() => {
nextTick(() => {
loading = false
loadMore()
})
}, 500)
}
})
</script>
<template>

Loading…
Cancel
Save