File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ export class App extends Component{
92
92
if (STATS .loading === this .state .action ){
93
93
return false
94
94
}
95
+ // 无更多内容则不执行后面逻辑
96
+ if (! this .state .hasMore ){
97
+ return ;
98
+ }
95
99
96
100
setTimeout (()=> {
97
101
if (this .state .index === 0 ){
Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ export class App extends Component{
87
87
if (STATS .loading === this .state .action ){
88
88
return false
89
89
}
90
+ // 无更多内容则不执行后面逻辑
91
+ if (! this .state .hasMore ){
92
+ return ;
93
+ }
90
94
91
95
setTimeout (()=> {
92
96
if (this .state .index === 0 ){
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-pullload" ,
3
- "version" : " 1.0.6 " ,
3
+ "version" : " 1.0.7 " ,
4
4
"description" : " React compopnent pull down refresh and pull up load more" ,
5
5
"main" : " ./lib/index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments