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