diff --git a/src/views/datatable/DataTableLazyDemo.vue b/src/views/datatable/DataTableLazyDemo.vue index 3033e6b60..df338283a 100644 --- a/src/views/datatable/DataTableLazyDemo.vue +++ b/src/views/datatable/DataTableLazyDemo.vue @@ -70,10 +70,8 @@ export default { this.loading = true; setTimeout(() => { - this.carService.getCarsLarge().then(data => { - this.cars = this.datasource.slice(event.first, event.first + event.rows); - this.loading = false; - }); + this.cars = this.datasource.slice(event.first, event.first + event.rows); + this.loading = false; }, 1000); } } @@ -119,10 +117,8 @@ export default { this.loading = true; setTimeout(() => { - this.carService.getCarsLarge().then(data => { - this.cars = this.datasource.slice(event.first, event.first + event.rows); - this.loading = false; - }); + this.cars = this.datasource.slice(event.first, event.first + event.rows); + this.loading = false; }, 1000); } },