Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -404,6 +404,7 @@ export struct PeopleShipMainComponent { | @@ -404,6 +404,7 @@ export struct PeopleShipMainComponent { | ||
| 404 | return | 404 | return |
| 405 | } | 405 | } |
| 406 | this.isLoading = true | 406 | this.isLoading = true |
| 407 | + this.pageModel.isLoading = true | ||
| 407 | try { | 408 | try { |
| 408 | // 获取列表数据 | 409 | // 获取列表数据 |
| 409 | let listData = await PeopleShipMainViewModel.getAttentionContentListInfo(this.currentPage, 20, this.loadTime) | 410 | let listData = await PeopleShipMainViewModel.getAttentionContentListInfo(this.currentPage, 20, this.loadTime) |
| @@ -424,9 +425,10 @@ export struct PeopleShipMainComponent { | @@ -424,9 +425,10 @@ export struct PeopleShipMainComponent { | ||
| 424 | this.pageModel.hasMore = false | 425 | this.pageModel.hasMore = false |
| 425 | this.resolveEnd(true, resolve) | 426 | this.resolveEnd(true, resolve) |
| 426 | } | 427 | } |
| 427 | - | 428 | + this.pageModel.isLoading = false |
| 428 | } catch (exception) { | 429 | } catch (exception) { |
| 429 | this.resolveEnd(false, resolve) | 430 | this.resolveEnd(false, resolve) |
| 431 | + this.pageModel.isLoading = false | ||
| 430 | } | 432 | } |
| 431 | } | 433 | } |
| 432 | 434 |
-
Please register or login to post a comment