fix pagination

This commit is contained in:
saji_kk
2024-09-05 15:59:30 +03:30
parent 789d378f7b
commit c11ae8a447
5 changed files with 13439 additions and 8758 deletions
+4 -3
View File
@@ -208,9 +208,10 @@ export default {
urls.listPackage(filter)
);
if (result && result.status == 200) {
this.items = result.data.data.data;
this.currentPage = result.data.data.current_page;
this.lastPage = result.data.data.last_page;
const { data, meta } = result.data;
this.items = data;
this.currentPage = meta.current_page;
this.lastPage = meta.last_page;
}
this.loadMedicalCenters();
},