feat: 修改加载慢问题

pull/245/head
raofuzi 1 year ago
parent 97ebc08c61
commit 42d5e1b0ab

@ -623,20 +623,6 @@ watch(() => show.value, async (newVal) => {
layout()
}
})
watch(() => pagination.pageNo, (newVal, oldVal) => {
if (newVal == oldVal)
return
if ((newVal == 1 || newVal == 2) && canloadMore) {
setTimeout(() => {
nextTick(() => {
loading = false
loadMore()
})
}, 300)
}
})
</script>
<template>
@ -720,7 +706,7 @@ watch(() => pagination.pageNo, (newVal, oldVal) => {
</div>
</div>
<div ref="el" class="scroll" :style="{ height: maxHeight,marginTop:'16px' }">
<div ref="el" class="scroll" :style="{ height: maxHeight, marginTop: '16px' }">
<!-- <n-scrollbar :on-scroll="scrollHandler"> -->
<div ref="masonryRef" class="grid">
<div

Loading…
Cancel
Save