mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-07-04 17:48:54 +08:00
修复在线列表加载问题
This commit is contained in:
parent
ffe8891202
commit
bf5fe404f1
@ -165,11 +165,7 @@ const List = forwardRef<ListType, ListProps>(({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleLoadMore = () => {
|
const handleLoadMore = () => {
|
||||||
switch (status) {
|
if (status != 'idle') return
|
||||||
case 'end':
|
|
||||||
case 'loading':
|
|
||||||
case 'refreshing': return
|
|
||||||
}
|
|
||||||
onLoadMore()
|
onLoadMore()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -47,10 +47,7 @@ const List = forwardRef<ListType, ListProps>(({
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
const handleLoadMore = () => {
|
const handleLoadMore = () => {
|
||||||
switch (status) {
|
if (status != 'idle') return
|
||||||
case 'loading':
|
|
||||||
case 'refreshing': return
|
|
||||||
}
|
|
||||||
onLoadMore()
|
onLoadMore()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,11 +50,7 @@ export default forwardRef<ListType, ListProps>(({ onRefresh, onLoadMore, onOpenD
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
const handleLoadMore = () => {
|
const handleLoadMore = () => {
|
||||||
switch (status) {
|
if (status != 'idle') return
|
||||||
case 'end':
|
|
||||||
case 'loading':
|
|
||||||
case 'refreshing': return
|
|
||||||
}
|
|
||||||
onLoadMore()
|
onLoadMore()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user