diff --git a/src/composables/userSearchLoads.js b/src/composables/userSearchLoads.js index d6a782d..5bac474 100644 --- a/src/composables/userSearchLoads.js +++ b/src/composables/userSearchLoads.js @@ -17,7 +17,9 @@ export default function useSearchLoads() { } try { const endpoint = `/v1/loads/find${filterStr}&$sort[createdAt]=-1`; + console.log(endpoint); const {data} = await api.get(endpoint); + console.log(data); total.value = data.total; loads.value = data.data; } catch (error) { diff --git a/src/stores/company.js b/src/stores/company.js index 4889d96..8344683 100644 --- a/src/stores/company.js +++ b/src/stores/company.js @@ -302,11 +302,11 @@ export const useCompanyStore = defineStore('company', () => { } const getLocationsLoads = async(type) => { - console.log(type); + // console.log(type); let locationsType = (type === 'loading') ? locationsLoad.value : locationsDowload.value; - console.log(locationsType); + // console.log(locationsType); if(locationsType.length <= 0) { - const filterStr = "?company="+ localStorage.getItem('id') + '&$limit=100'; + const filterStr = "?company="+ localStorage.getItem('id') + '&elements=100'; const respBoth = await getLocations(filterStr + '&type=' + 'both'); const resp = await getLocations(filterStr + '&type=' + type); if(resp !== null && resp.total > 0) { diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 4da2a30..2ed0908 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -80,13 +80,12 @@