Remove timeout

pull/880/head
Cagatay Civici 2021-01-20 13:45:26 +03:00
parent 624dcd7558
commit dbbf4ce38c
1 changed files with 10 additions and 14 deletions

View File

@ -116,13 +116,11 @@ export default {
loadLazyData() {
this.loading = true;
setTimeout(() => {
this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => {
this.customers = data.customers;
this.totalRecords = data.totalRecords;
this.loading = false;
});
}, 1000);
this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => {
this.customers = data.customers;
this.totalRecords = data.totalRecords;
this.loading = false;
});
},
onPage(event) {
this.lazyParams = event;
@ -194,13 +192,11 @@ export default {
loadLazyData() {
this.loading = true;
setTimeout(() => {
this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => {
this.customers = data.customers;
this.totalRecords = data.totalRecords;
this.loading = false;
});
}, 1000);
this.customerService.getCustomers({lazyEvent: JSON.stringify( this.lazyParams )}).then(data => {
this.customers = data.customers;
this.totalRecords = data.totalRecords;
this.loading = false;
});
},
onPage(event) {
this.lazyParams = event;