add: pagination in search loads y companies

This commit is contained in:
Alexandro Uc Santos
2024-03-16 18:20:59 -06:00
parent c286da773e
commit f8dfe4a3ad
17 changed files with 122 additions and 45 deletions

View File

@@ -6,7 +6,7 @@ export default function useDirectory() {
const loading = ref(false);
const users = ref([]);
const companiesTotal = ref(0);
const currentCompaniesPage = ref(1);
const currentCompaniesPage = ref(0);
const getCompaniesData = async(filterQuery) => {

View File

@@ -5,7 +5,7 @@ export default function useSearchLoads() {
const loads = ref([]);
const loading = ref(false);
const total = ref(0);
const currentPage = ref(1);
const currentPage = ref(0);
const getLoadsPublished = async(filterQuery) => {
loading.value = true;