|
@@ -128,7 +128,7 @@ export default class Home extends Vue {
|
|
|
if (this.listState.currentPage === 1) {
|
|
|
if (type === 'refresh') {
|
|
|
this.isLoading = false
|
|
|
- Toast('刷新成功')
|
|
|
+ Toast({ message: '刷新成功', duration: 1000 })
|
|
|
}
|
|
|
this.listState.list = rows
|
|
|
} else {
|
|
@@ -143,8 +143,10 @@ export default class Home extends Vue {
|
|
|
}
|
|
|
|
|
|
onLoad () {
|
|
|
- this.listState.currentPage++
|
|
|
- this.getReportList()
|
|
|
+ if (this.listState.currentPage < this.listState.totalPage) {
|
|
|
+ this.listState.currentPage++
|
|
|
+ this.getReportList()
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
goDetail (item) {
|